json class : json(string) fitter

Description

Get a new instance of the json class created from a string written in JSON format.

Syntax

new json(string jsonStr)

Arguments

ClassNameDescription
stringjsonStrA string written in JSON format.

Return value

ClassDescription
jsonA new instance of the json class created from the specified string.

Sample code

1:

json jsonData = new json("{@name@:@suzuki@,@age@:1}".Replace("@","".DQ));

Notes

None.

Links for reference

None.

Copyright © Cooker All rights reserved.