parse
parse: (string) -> anyParse a JSON document into Luau values.
text- The document.
- Returns
- Errors on malformed input rather than returning
nil.
Parse and encode JSON on the host.
Jsonparseparse: (string) -> anyParse a JSON document into Luau values.
textnil.encodeencode: (any, { pretty: boolean? }?) -> stringSerialise a Luau value to JSON.
valueoptions{ pretty = true } writes two spaces of indent, ": ", HTML-safe escaping, and leaves out an object member whose value is JsonNull.INSTANCE. Without it, compact JSON.