Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CaseInsensitiveStringJsonEncoder.cs
1using System;
2using System.Text;
3using Waher.Content;
7
9{
14 {
19 {
20 }
21
28 public void Encode(object Object, int? Indent, StringBuilder Json)
29 {
31
32 Json.Append('"');
33 Json.Append(JSON.Encode(s.Value));
34 Json.Append('"');
35 }
36
42 public Grade Supports(Type ObjectType)
43 {
44 return ObjectType == typeof(CaseInsensitiveString) ? Grade.Excellent : Grade.NotAtAll;
45 }
46 }
47}
Helps with common JSON-related tasks.
Definition: JSON.cs:14
static string Encode(string s)
Encodes a string for inclusion in JSON.
Definition: JSON.cs:507
Grade Supports(Type ObjectType)
How well the JSON encoder encodes objects of type ObjectType .
void Encode(object Object, int? Indent, StringBuilder Json)
Encodes the Object to JSON.
Represents a case-insensitive string.
string Value
String-representation of the case-insensitive string. (Representation is case sensitive....
Interface for encoding objects of certain types to JSON.
Definition: IJsonEncoder.cs:11
Grade
Grade enumeration
Definition: Grade.cs:7