Class JSONDataMap
Represents a data transfer object (DTO) JSON map, that associates keys with values
Inheritance
System.Object
System.Collections.Generic.Dictionary<System.String, System.Object>
JSONDataMap
Implements
System.Collections.Generic.IDictionary<System.String, System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable
Inherited Members
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Add(System.String, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Clear()
System.Collections.Generic.Dictionary<System.String, System.Object>.ContainsKey(System.String)
System.Collections.Generic.Dictionary<System.String, System.Object>.ContainsValue(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<System.String, System.Object>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Remove(System.String)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.Object>[], System.Int32)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.TryGetValue(System.String, System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.Comparer
System.Collections.Generic.Dictionary<System.String, System.Object>.Count
System.Collections.Generic.Dictionary<System.String, System.Object>.Item[System.String]
System.Collections.Generic.Dictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Item[System.Object]
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.Values
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Serialization.JSON
Assembly: Azos.dll
Syntax
[Serializable]
public class JSONDataMap : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IJSONDataObject
Constructors
JSONDataMap()
Declaration
public JSONDataMap()
JSONDataMap(Boolean)
Declaration
public JSONDataMap(bool caseSensitive)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | caseSensitive |
JSONDataMap(SerializationInfo, StreamingContext)
Declaration
protected JSONDataMap(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Fields
CaseSensitive
Declaration
public readonly bool CaseSensitive
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
Item[String]
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Property Value
Type | Description |
---|---|
System.Object |
Methods
Append(JSONDataMap, Boolean)
Appends contents of another JSONDataMap for keys that do not exist in this one or null. Only appends references, does not provide deep reference copy
Declaration
public JSONDataMap Append(JSONDataMap other, bool deep = false)
Parameters
Type | Name | Description |
---|---|---|
JSONDataMap | other | |
System.Boolean | deep |
Returns
Type | Description |
---|---|
JSONDataMap |
FromURLEncodedStream(Stream, Encoding, Boolean)
Turns URL encoded content into JSONDataMap
Declaration
public static JSONDataMap FromURLEncodedStream(Stream stream, Encoding encoding = null, bool caseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
System.Text.Encoding | encoding | |
System.Boolean | caseSensitive |
Returns
Type | Description |
---|---|
JSONDataMap |
FromURLEncodedString(String, Boolean)
Turns URL encoded content into JSONDataMap
Declaration
public static JSONDataMap FromURLEncodedString(string content, bool caseSensitive = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | |
System.Boolean | caseSensitive |
Returns
Type | Description |
---|---|
JSONDataMap |
ToConfigNode(String)
Returns this object as a config tree
Declaration
public ConfigSectionNode ToConfigNode(string rootName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootName |
Returns
Type | Description |
---|---|
ConfigSectionNode |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable