public JsonNode(string input, bool isJson = false) { if (isJson) { Type = EJType.Object; value = null; using (System.IO.MemoryStream memStream = new System.IO.MemoryStream()) { System.IO.StreamWriter sw = new System.IO.StreamWriter(memStream); sw.Write(input); sw.Flush(); memStream.Seek(0, System.IO.SeekOrigin.Begin); this.Read(new System.IO.StreamReader(memStream)); } } else { Type = EJType.String; value = (object)input; } }
public void SetValue(bool val) { this.value = (object)val; this.Type = EJType.Boolean; }
public void SetValue(Dictionary <string, JsonNode> val) { this.value = (object)val; this.Type = EJType.Object; }
public void SetValue(double val) { this.value = (object)val; this.Type = EJType.Number; }
public JsonNode(double input) { this.Type = EJType.Number; this.value = (object)input; }
public JsonNode(bool input) { Type = EJType.Boolean; value = (object)input; }
public void setValue(bool val) { this.value = (object)val; this.Type = EJType.Boolean; }
public JsonNode(Dictionary <string, JsonNode> input) { Type = EJType.Object; value = (object)input; }
public void setValue(double val) { this.value = (object)val; this.Type = EJType.Number; }
public void setValue(Dictionary<string, JsonNode> val) { this.value = (object)val; this.Type = EJType.Object; }
public void setValue(string val) { this.value = (object)val; this.Type = EJType.String; }
public void setValue(List<JsonNode> val) { this.value = (object)val; this.Type = EJType.Array; }
public JsonNode(bool input) { this.Type = EJType.Boolean; this.value = (object)input; }
public void SetValue() { this.value = null; this.Type = EJType.Object; }
public void setValue() { this.value = null; this.Type = EJType.Object; }
public JsonNode() { Type = EJType.Object; value = null; }
public JsonNode(List <JsonNode> input) { Type = EJType.Array; value = (object)input; }
public JsonNode(IEnumerable <JsonNode> input) { Type = EJType.Array; value = input.ToList(); }
public void SetValue(List <JsonNode> val) { this.value = (object)val; this.Type = EJType.Array; }
public JsonNode(double input) { Type = EJType.Number; value = (object)input; }
public void SetValue(string val) { this.value = (object)val; this.Type = EJType.String; }
public JsonNode(System.IO.StreamReader input) { Type = EJType.Object; value = null; this.Read(input); }
public JsonNode() { this.Type = EJType.Object; this.value = null; }