/// <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="IJSonObject"/> interface as those objects expose /// more functionality then the standard .NET ones. /// </summary> public IJSonObject ReadAsJSonObject(JSonReaderNumberFormat format) { Reset(JSonObjectFactory.Create(format)); return(ReadInput() as IJSonObject); }
/// <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="IJSonObject"/> interface as those objects expose /// more functionality then the standard .NET ones. /// </summary> public IJSonObject ReadAsJSonObject(TextReader input, JSonReaderNumberFormat format) { SetSource(input); Reset(JSonObjectFactory.Create(format)); return(ReadInput() as IJSonObject); }
/// <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="IJSonObject"/> interface as those objects expose /// more functionality then the standard .NET ones. /// </summary> public IJSonObject ReadAsJSonObject() { _factory = JSonObjectFactory.Create(JSonReaderNumberFormat.Default); return(ReadInput() as IJSonObject); }