Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: JsonValue Parse(string, bool)

Declaration

public static JsonValue Parse(
    string jsonValue,
    bool allowJavaScript = false
)

Summary

Parses the specified string into a JSON value.

Parameters

stringjsonValue A string containing JSON syntax.
boolallowJavaScript

True to allow certain notations that are allowed in JavaScript but not strictly in JSON:

  • allows keys in dictionaries to be unquoted
  • allows strings to be delimited with single-quotes in addition to double-quotes

Returns

A JsonValue instance representing the value.