Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UseOptimizedJSONMarshaling bool = true
Used by tests to selectively disable experimental JSON marshaler
View Source
var UseOptimizedJSONMarshalingV3 bool = true
View Source
var UseOptimizedJSONUnmarshaling bool = true
Used by tests to selectively disable experimental JSON unmarshaler
View Source
var UseOptimizedJSONUnmarshalingV3 bool = true
Functions ¶
func DeterministicMarshal ¶
DeterministicMarshal calls the jsonv2 library with the deterministic flag in order to have stable marshaling.
func IsExtensionKey ¶
IsExtensionKey returns true if the input string is of format x-* or X-*
func JSONRefFromMap ¶
func JSONRefFromMap(jsonRef *jsonreference.Ref, v map[string]interface{}) error
JSONRefFromMap populates a json reference object if the map v contains a $ref key.
func SanitizeExtensions ¶
SanitizeExtensions sanitizes the input map such that non extension keys (non x-*, X-*) keys are dropped from the map. Returns the new modified map, or nil if the map is now empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
third_party
|
|
go-json-experiment/json
Package json implements serialization of JSON as specified in RFC 4627, RFC 7159, RFC 7493, RFC 8259, and RFC 8785.
|
Package json implements serialization of JSON as specified in RFC 4627, RFC 7159, RFC 7493, RFC 8259, and RFC 8785. |
Click to show internal directories.
Click to hide internal directories.