Documentation
¶
Overview ¶
Package jsoninput validates canonical, unambiguous JSON request objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeObject ¶
DecodeObject rejects null, duplicate keys, noncanonical field names, excessive nesting, unknown fields and trailing data. Limits on total bytes belong to the transport. Reflection follows the actual Go request type's JSON field tags. An explicit json.RawMessage field is opaque to this type checker, but still rejects duplicate keys, null and excessive nesting. Its owner must validate the versioned schema before treating that data as a trusted domain value.
func ValidUnicode ¶
ValidUnicode rejects invalid UTF-8 and unpaired escaped UTF-16 surrogates. encoding/json otherwise replaces the latter silently. This does not validate JSON syntax; callers must still use their normal schema/type decoder.
Types ¶
This section is empty.