package
0.0.0-20240815175050-ebd3a8989ca1
Repository: https://github.com/go-json-experiment/json.git
Documentation: pkg.go.dev
# Functions
AppendFloat appends src to dst as a JSON number per RFC 7159, section 6.
AppendQuote appends src to dst as a JSON string per RFC 7159, section 7.
AppendUnquote appends the unescaped form of a JSON string in src to dst.
CompareUTF16 lexicographically compares x to y according to the UTF-16 codepoints of the UTF-8 encoded input strings.
ConsumeFalse consumes the next JSON false literal per RFC 7159, section 3.
ConsumeLiteral consumes the next JSON literal per RFC 7159, section 3.
ConsumeNull consumes the next JSON null literal per RFC 7159, section 3.
ConsumeNumber consumes the next JSON number per RFC 7159, section 6.
ConsumeNumberResumable is identical to consumeNumber but supports resuming from a previous call that returned io.ErrUnexpectedEOF.
ConsumeSimpleNumber consumes the next JSON number per RFC 7159, section 6 but is limited to the grammar for a positive integer.
ConsumeSimpleString consumes the next JSON string per RFC 7159, section 7 but is limited to the grammar for an ASCII string without escape sequences.
ConsumeString consumes the next JSON string per RFC 7159, section 7.
ConsumeStringResumable is identical to consumeString but supports resuming from a previous call that returned io.ErrUnexpectedEOF.
ConsumeTrue consumes the next JSON true literal per RFC 7159, section 3.
ConsumeWhitespace consumes leading JSON whitespace per RFC 7159, section 2.
HasSuffixByte reports whether b ends with c.
NeedEscape reports whether src needs escaping of any characters.
No description provided by the author
No description provided by the author
ParseFloat parses a floating point number according to the Go float grammar.
ParseUint parses b as a decimal unsigned integer according to a strict subset of the JSON number grammar, returning the value if valid.
QuoteRune quotes the first rune in the input.
ReformatNumber consumes a JSON string from src and appends it to dst, canonicalizing it if specified.
ReformatString consumes a JSON string from src and appends it to dst, reformatting it if necessary for the given escapeRune parameter.
TrimSuffixByte removes c from the end of b if it is present.
TrimSuffixString trims a valid JSON string at the end of b.
TrimSuffixWhitespace trims JSON from the end of b.
UnquoteMayCopy returns the unescaped form of b.
# Variables
NewError and ErrInvalidUTF8 are injected by the "jsontext" package, so that these error types use the jsontext.SyntacticError type.
NewError and ErrInvalidUTF8 are injected by the "jsontext" package, so that these error types use the jsontext.SyntacticError type.
# Type aliases
No description provided by the author
No description provided by the author