Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + const LiteralFalse + const LiteralNil + const LiteralTrue + var ErrInvalidJSONData = terror.ClassJSON.New(mysql.ErrInvalidJSONData, mysql.MySQLErrName[mysql.ErrInvalidJSONData]) + var ErrInvalidJSONPath = terror.ClassJSON.New(mysql.ErrInvalidJSONPath, mysql.MySQLErrName[mysql.ErrInvalidJSONPath]) + var ErrInvalidJSONText = terror.ClassJSON.New(mysql.ErrInvalidJSONText, mysql.MySQLErrName[mysql.ErrInvalidJSONText]) + func CompareJSON(j1 JSON, j2 JSON) (cmp int, err error) + func PeekBytesAsJSON(b []byte) (n int, err error) + func Serialize(j JSON) []byte + type JSON struct + Array []JSON + I64 int64 + Object map[string]JSON + Str string + TypeCode TypeCode + func CreateJSON(in interface{}) JSON + func Deserialize(data []byte) (j JSON, err error) + func ParseFromString(s string) (j JSON, err error) + func (j *JSON) UnmarshalJSON(data []byte) (err error) + func (j JSON) Extract(pathExprList []PathExpression) (ret JSON, found bool) + func (j JSON) MarshalJSON() ([]byte, error) + func (j JSON) Merge(suffixes []JSON) JSON + func (j JSON) Modify(pathExprList []PathExpression, values []JSON, mt ModifyType) (retj JSON, err error) + func (j JSON) Remove(pathExprList []PathExpression) (JSON, error) + func (j JSON) String() string + func (j JSON) Type() string + func (j JSON) Unquote() (string, error) + type ModifyType byte + const ModifyInsert + const ModifyReplace + const ModifySet + type PathExpression struct + func ParseJSONPathExpr(pathExpr string) (pe PathExpression, err error) + type TypeCode byte + const TypeCodeArray + const TypeCodeFloat64 + const TypeCodeInt64 + const TypeCodeLiteral + const TypeCodeObject + const TypeCodeString + const TypeCodeUint64