parseJSON - multiple declarations

Function parseJSON

Parses a serialized string and returns a tree of JSON values.

JSONValue parseJSON(T) (
  T json,
  int maxDepth = -1,
  JSONOptions options = JSONOptions.none
)
if (isSomeFiniteCharInputRange!T);

Throws

JSONException if string does not follow the JSON grammar or the depth exceeds the max depth, ConvException if a number in the input cannot be represented by a native D type.

Parameters

NameDescription
json json-formatted string to parse
maxDepth maximum depth of nesting allowed, -1 disables depth checking
options enable decoding string representations of NaN/Inf as float values

Function parseJSON

Parses a serialized string and returns a tree of JSON values.

JSONValue parseJSON(T) (
  T json,
  JSONOptions options
)
if (isSomeFiniteCharInputRange!T);

Throws

JSONException if the depth exceeds the max depth.

Parameters

NameDescription
json json-formatted string to parse
options enable decoding string representations of NaN/Inf as float values