Example #1
0
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonMutableObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonMutableObject ReadAsJSonMutableObject(JSonReaderNumberFormat format)
 {
     Reset(JSonMutableObjectFactory.Create(format));
     return(ReadInput() as IJSonMutableObject);
 }
Example #2
0
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonMutableObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonMutableObject ReadAsJSonMutableObject(TextReader input, JSonReaderNumberFormat format)
 {
     SetSource(input);
     Reset(JSonMutableObjectFactory.Create(format));
     return(ReadInput() as IJSonMutableObject);
 }
Example #3
0
 /// <summary>
 /// Converts a JSON string from given input into a tree of JSON-specific objects.
 /// It then allows easier deserialization for objects implementing <see cref="IJSonMutableObject"/> interface as those objects expose
 /// more functionality then the standard .NET ones.
 /// </summary>
 public IJSonMutableObject ReadAsJSonMutableObject()
 {
     _factory = JSonMutableObjectFactory.Create(JSonReaderNumberFormat.Default);
     return(ReadInput() as IJSonMutableObject);
 }