Get SpatialOS

Sites

Menu

Json Class

Namespace: Improbable.Gdk.Tools.MiniJSON
GDK package: Tools
Source

This class encodes and decodes JSON strings. Spec. details, see JSON uses Arrays and Objects. These correspond here to the datatypes IList and IDictionary. All numbers are parsed to doubles.


Static Methods

Deserialize Source
Dictionary<string, object> Deserialize(string json)

Parses the string json into a value

Returns:
An List, a Dictionary, a double, an integer,a string, null, true, or false

Parameters
  • string json : A JSON string.
Serialize Source
string Serialize(object obj)

Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string

Returns:
A JSON encoded string, or null if object 'json' is not serializable

Parameters
  • object obj :

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums