Difference between revisions of "JsonNamespace class"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
{{HelpFiles}}
 
 
{{CGscriptClass_Template
 
{{CGscriptClass_Template
 
|Name=<nowiki>JsonNamespace</nowiki>
 
|Name=<nowiki>JsonNamespace</nowiki>

Revision as of 11:48, 16 December 2011

JsonNamespace



The json namespace


Methods

  • string Encode(AnyType obj "Object to encode") - Encode an object to a json string
  • string EncodeWcf(AnyType obj "Object to encode") - Encode an object to a json string using Wcf json (where __type is added)
  • AnyType Parse(string json "String to parse") - Parse a json string to an object structure
  • AnyType ParseWcf(string json "String to parse") - Parse a json string to an object structure using Wcf json (where __type is respected)
  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.