Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
JsonOutput.cs
1using System;
2using System.Collections.Generic;
5
6namespace Waher.Content.Json
7{
12 {
18 public Grade Supports(Type Object) => Object == typeof(Dictionary<string, object>) ? Grade.Ok : Grade.NotAtAll;
19
25 public string GetString(object Value)
26 {
27 return JSON.Encode((Dictionary<string, object>)Value, false);
28 }
29 }
30}
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
Converts values of type Dictionary{string, object} to expression strings.
Definition: JsonOutput.cs:12
string GetString(object Value)
Gets a string representing a value.
Definition: JsonOutput.cs:25
Grade Supports(Type Object)
If the interface understands objects such as Object .
Interface for custom string output classes. Converts objects of a given type to an expression string.
Grade
Grade enumeration
Definition: Grade.cs:7