Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidJSONText means invalid JSON text. ErrInvalidJSONText = terror.ClassJSON.New(mysql.ErrInvalidJSONText, mysql.MySQLErrName[mysql.ErrInvalidJSONText]) // ErrInvalidJSONPath means invalid JSON path. ErrInvalidJSONPath = terror.ClassJSON.New(mysql.ErrInvalidJSONPath, mysql.MySQLErrName[mysql.ErrInvalidJSONPath]) // ErrInvalidJSONData means invalid JSON data. ErrInvalidJSONData = terror.ClassJSON.New(mysql.ErrInvalidJSONData, mysql.MySQLErrName[mysql.ErrInvalidJSONData]) )
Functions ¶
func CompareJSON ¶
CompareJSON compares two json object.
Types ¶
type JSON ¶
type JSON interface { // String returns JSON text. String() string // Type returns type string. Type() string // contains filtered or unexported methods }
JSON is for MySQL JSON type.
func CreateJSON ¶
func CreateJSON(in interface{}) JSON
CreateJSON creates a JSON from in. Return nil if in is not a valid JSON type.
func Deserialize ¶
Deserialize means deserialize a json from bytes.
func ParseFromString ¶
ParseFromString parses a json from string.
Click to show internal directories.
Click to hide internal directories.