# Functions
CompareBinary compares two binary json objects.
CreateBinary creates a BinaryJSON from interface.
MergeBinary merges multiple BinaryJSON into one according the following rules: 1) adjacent arrays are merged to a single array; 2) adjacent object are merged to a single object; 3) a scalar value is autowrapped as an array before merge; 4) an adjacent array and object are merged by autowrapping the object as an array.
ParseBinaryFromString parses a json from string.
ParseJSONPathExpr parses a JSON path expression.
PeekBytesAsJSON trys to peek some bytes from b, until we can deserialize a JSON from those bytes.
# Constants
LiteralFalse represents JSON false.
LiteralNil represents JSON null.
LiteralTrue represents JSON true.
ModifyInsert is for insert a new element into a JSON.
ModifyReplace is for replace an old elemList from a JSON.
ModifySet = ModifyInsert | ModifyReplace.
TypeCodeArray indicates the JSON is an array.
TypeCodeFloat64 indicates the JSON is a double float number.
TypeCodeInt64 indicates the JSON is a signed integer.
TypeCodeLiteral indicates the JSON is a literal.
TypeCodeObject indicates the JSON is an object.
TypeCodeString indicates the JSON is a string.
TypeCodeUint64 indicates the JSON is a unsigned integer.
# Variables
ErrInvalidJSONData means invalid JSON data.
ErrInvalidJSONPath means invalid JSON path.
ErrInvalidJSONText means invalid JSON text.
# Structs
BinaryJSON represents a binary encoded JSON object.
PathExpression is for JSON path expression.