folly::parseJson

Parse a json blob out of a range and produce a dynamic representing it.

Synopses

Declared in <folly/json/json.h>

Parse a json blob out of a range and produce a dynamic representing it.

dynamic
parseJson(StringPiece range);
» more...

Parse a json blob out of a range and produce a dynamic representing it.

dynamic
parseJson(
    StringPiece range,
    json::serialization_opts const& opts);
» more...

Return Value

The parsed dynamic value.

Parameters

NameDescription
rangeThe JSON text to parse.
optsThe serialization options controlling parsing.