vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function parseJson

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

Json parseJson(R) (
  ref R range,
  scope int* line = null,
  string filename = null
)
if (isForwardRange!R);

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

Throws a JSONException if any parsing error occured.

Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

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