Function parseJson

Parses the given range as a JSON string and returns the corresponding Json object.

The range is shrunk during parsing, leaving any remaining text that is not part of the JSON contents.

Throws an Exception if any parsing error occured.

Prototype

Json parseJson(R)(ref R range, int* line = null) if (is(R == string))(
  ref R range,
  int* line
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.