Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObjectExNihiloEncoder.cs
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using System.Reflection;
5using System.Text;
8
10{
15 {
20 {
21 }
22
29 public void Encode(object Object, int? Indent, StringBuilder Json)
30 {
31 JSON.Encode((Dictionary<string, IElement>)Object, Indent, Json);
32 }
33
39 public Grade Supports(Type ObjectType)
40 {
41 return typeof(Dictionary<string, IElement>).GetTypeInfo().IsAssignableFrom(ObjectType.GetTypeInfo()) ? Grade.Excellent : Grade.NotAtAll;
42 }
43 }
44}
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
Encodes Dictionary<String, IElement> values.
ObjectExNihiloEncoder()
Encodes Dictionary<String, IElement> values.
void Encode(object Object, int? Indent, StringBuilder Json)
Encodes the Object to JSON.
Grade Supports(Type ObjectType)
How well the JSON encoder encodes objects of type ObjectType .
Interface for encoding objects of certain types to JSON.
Definition: IJsonEncoder.cs:11
Grade
Grade enumeration
Definition: Grade.cs:7