Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Difference removes the subset rhs from the lhs. If both are objects, remove the subset of the same keyed value, recursively, until reach to a non-object value for either lhs or rhs (regardless of the values), that key will be removed from lhs. If this is the last key in lhs, it will be removed one level upwards.
func Disjointed ¶
Disjointed tells whether two valid json values are disjointed. They are disjointed in one of the following cases:
- Both are objects: Having different sets of keys, or the values of the common key are disjointed.
- Otherwise, the two json values are regarded jointed, including both values have different types, or different values.
func NullifyObject ¶
NullifyObject returns the json object, with value nullified, recursively. If the input is not a json object, nil is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.