/// <summary> /// Add JSON representation of the object /// </summary> /// <param name="o">The o.</param> public void WriteObject(IDextopJsObject o) { if (o == null) { Write("null"); } else { o.WriteJs(this); } }
/// <summary> /// Add property with an object value. /// </summary> /// <param name="name">The value of the propery.</param> /// <param name="o">The value of the propery.</param> public void AddProperty(String name, IDextopJsObject o) { if (blockStart) { WriteLine(); } else { WriteLine(","); } Write("\""); Write(name); Write("\": "); if (o == null) { Write("null"); } else { o.WriteJs(this); } }
/// <summary> /// Add JSON representation of the object /// </summary> /// <param name="o">The o.</param> public void WriteObject(IDextopJsObject o) { if (o == null) Write("null"); else o.WriteJs(this); }
/// <summary> /// Add property with an object value. /// </summary> /// <param name="name">The value of the propery.</param> /// <param name="o">The value of the propery.</param> public void AddProperty(String name, IDextopJsObject o) { if (blockStart) WriteLine(); else WriteLine(","); Write("\""); Write(name); Write("\": "); if (o == null) Write("null"); else o.WriteJs(this); }