Documentation
¶
Overview ¶
Package jsonenc holds the JSON string escaper and the RFC 8259 number check used by jsonflat.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendEscaped ¶
AppendEscaped appends s with JSON string escaping applied, without quotes. Only the characters that RFC 8259 requires to be escaped are escaped. Bytes of 0x80 and above pass through unchanged, so valid UTF-8 stays valid.
func AppendQuoted ¶
AppendQuoted appends s as a JSON string, including the quotes.
func ValidNumber ¶
ValidNumber reports whether s is a number as defined by RFC 8259:
-? (0 | [1-9][0-9]*) (\.[0-9]+)? ([eE][+-]?[0-9]+)?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.