llvm::json::parse

Parses the provided JSON source, or returns a ParseError.

Synopsis

Declared in <llvm/Support/JSON.h>

llvm::Expected<Value>
parse(llvm::StringRef JSON);

Description

The returned Value is self-contained and owns its strings (they do not refer to the original source).

Return Value

The parsed Value, or a ParseError on failure.

Parameters

NameDescription
JSONJSON text to parse.