C# Class Rhino.Json.JsonParser

This class converts a stream of JSON tokens into a JSON value.
This class converts a stream of JSON tokens into a JSON value. See ECMA 15.12.
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
JsonParser ( Context cx, Scriptable scope ) : System
ParseValue ( string json ) : object

Private Methods

Method Description
Consume ( char token ) : void
ConsumeWhitespace ( ) : void
FromHex ( char c ) : int
NextOrNumberError ( int numberStart ) : char
NumberError ( int start, int end ) : JsonParser.ParseException
ReadArray ( ) : object
ReadDigits ( ) : void
ReadFalse ( ) : bool
ReadNull ( ) : object
ReadNumber ( char c ) : Number
ReadObject ( ) : object
ReadString ( ) : string
ReadTrue ( ) : bool
ReadValue ( ) : object

Method Details

JsonParser() public method

public JsonParser ( Context cx, Scriptable scope ) : System
cx Rhino.Context
scope Scriptable
return System

ParseValue() public method

public ParseValue ( string json ) : object
json string
return object