parseHjson

Parses a Hjson value and feeds the parsed tokens into given consumer. This allows for parsing into representations other than std.json.JSONValue.

  1. JSONValue parseHjson(string hjson)
  2. void parseHjson(string hjson, Consumer consumer)
    void
    parseHjson
    (
    Consumer
    )
    (
    string hjson
    ,
    ref Consumer consumer
    )

Parameters

hjson string

string containing the Hjson.

consumer Consumer

Object responsible for processing the parsed tokens.

Throws

HjsonException when passed invalid Hjson.

Meta