Pages
core
Search
Entities
Json
Functions
Parses a string into an Object
, returns Maybe.nothing()
if the parsing failed.
Result.isOk(Json.parse("{}"))
Result.isError(Json.parse("{"))
Pretty stringyfies the given object.
Json.prettyStringify(`{ a: "Hello" }`, 2) == "{\n \"a\": \"Hello\"\n}"
Stringifies an Object
into JSON string.
Json.stringify(`{ a: "Hello" }`) == "{ \"a\": \"Hello\" }"