json class : ToString() method
Description
Gets a JSON format string of the instance.
Syntax
jsonInstance.ToString()
Arguments
None
Return value
Class | Description |
string | A JSON format string of the instance. |
Sample code
1: | json jsonIns = new json("{@name@:@suzuki@,@age@:1}".Replace("@","".DQ)); |
2: | string jsonStr = jsonIns.ToString(); // {"name":"suzuki","age":1} |
Notes
None
Links for reference
None