parseJSONString

Parses a Hjson JSON-string.

string
parseJSONString
(
ref string hjson
,
ref size_t collumn
)

Parameters

hjson string

Hjson being parsed. Must not contain leading whitespace. The beginning of the Hjson until the end of the parsed Hjson value is consumed.

collumn size_t

How many dchars were popped from the front of hjson since last line feed. Will be updated by the function. Needed to properly parse multiline strings.

Return Value

Type: string

The parsed string.

Throws

HjsonException if hjson starts with an invalid Hjson value. Invalid Hjson past the first valid value is not detected.

Meta