std1.0.0-beta-7 SafeC docs

std :: serial::json

Function std::json_parse

#include <std/serial/json.h> source ยท definition

struct Value json_parse(const &char text, ?&int ok)

Parses a JSON document. On success, '*ok' (if non-NULL) is set to 1 and the parsed tree is returned; on failure, '*ok' is set to 0 and the return value is Value::null(). Ignores trailing content after the first complete value (matches most JSON libraries' default leniency).