Beispiel #1
0
 void SerializeObject(JSON obj)
 {
     SerializeDictionary(obj.fields);
 }
Beispiel #2
0
 /// <summary>
 /// Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string
 /// </summary>
 /// <param name="json">A Dictionary&lt;string, object&gt; / List&lt;object&gt;</param>
 /// <returns>A JSON encoded string, or null if object 'json' is not serializable</returns>
 public static string Serialize(JSON obj)
 {
     return(Serializer.Serialize(obj));
 }