Exemplo n.º 1
0
 public string AsJson(bool indented, int indent)
 {
     indent = indented ? indent : 0;
     return(string.Format("{0}\"{1}\":{2}", new string(' ', indent), JsonValue.Escape(this.Name), this.Value.AsJson(indented, indent + 2)));
 }
Exemplo n.º 2
0
 public JsonProperty(string name, JsonValue value)
 {
     this.Name  = name;
     this.Value = value;
 }