parseJSON

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

  1. JSONValue parseJSON(T json, int maxDepth, JSONOptions options)
    parseJSON
    (
    T
    )
    if (
    isInputRange!T &&
    !isInfinite!T
    &&
    isSomeChar!(ElementEncodingType!T)
    )
  2. JSONValue parseJSON(T json, JSONOptions options)

Parameters

json T

json-formatted string to parse

maxDepth int

maximum depth of nesting allowed, -1 disables depth checking

options JSONOptions

enable decoding string representations of NaN/Inf as float values

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.

Meta