json class : ToString() method

Description

Gets a JSON format string of the instance.

Syntax

jsonInstance.ToString()

Arguments

None

Return value

ClassDescription
stringA 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

Copyright © Cooker All rights reserved.