Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArray ¶
IsArray returns true whether the byte slice may be invalid JSON or if it's a an array. That is, if you don't know whether a JSON message contains `T[]` or `T`, IsArray will tell you whether you should try to unmarshal it as T[].
func ToArray ¶
ToArray assumes the list of byte slices are raw JSON messages, and joins them into an array. Note: if you know the total length of the items beforehand, use ToArrayWithLength.
func ToArrayWithLength ¶
ToArrayWithLength joins the items into a JSON array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.