Class JSONParser
Parses JSON lexer output into object graphs. NOTE: Although called JSON, this is really a JSON superset implementation that includes extra features: comments, directives, verbatim strings(start with $), ' or " string escapes, unquoted object key names
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.CodeAnalysis.JSON
Assembly: Azos.dll
Syntax
public sealed class JSONParser : Parser<JSONLexer>, IConfigurable, IParser, ICodeProcessor
Constructors
JSONParser(JSONData, JSONLexer, MessageList, Boolean, Boolean)
Declaration
public JSONParser(JSONData context, JSONLexer input, MessageList messages = null, bool throwErrors = false, bool caseSensitiveMaps = true)
Parameters
Type | Name | Description |
---|---|---|
JSONData | context | |
JSONLexer | input | |
MessageList | messages | |
System.Boolean | throwErrors | |
System.Boolean | caseSensitiveMaps |
JSONParser(JSONLexer, MessageList, Boolean, Boolean)
Declaration
public JSONParser(JSONLexer input, MessageList messages = null, bool throwErrors = false, bool caseSensitiveMaps = true)
Parameters
Type | Name | Description |
---|---|---|
JSONLexer | input | |
MessageList | messages | |
System.Boolean | throwErrors | |
System.Boolean | caseSensitiveMaps |
Properties
Language
Declaration
public override Language Language { get; }
Property Value
Type | Description |
---|---|
Language |
Overrides
Lexer
Declaration
public JSONLexer Lexer { get; }
Property Value
Type | Description |
---|---|
JSONLexer |
ResultContext
Declaration
public JSONData ResultContext { get; }
Property Value
Type | Description |
---|---|
JSONData |
Methods
DoParse()
Declaration
protected override void DoParse()
Overrides
Azos.CodeAnalysis.Parser<Azos.CodeAnalysis.JSON.JSONLexer>.DoParse()
MessageCodeToString(Int32)
Declaration
public override string MessageCodeToString(int code)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | code |
Returns
Type | Description |
---|---|
System.String |