![]() |
Online Maps
v3
|
The wrapper for JSON dictonary. More...
Public Member Functions | |
OnlineMapsJSONObject () | |
Constructor More... | |
void | Add (string name, OnlineMapsJSONItem value) |
Adds element to the dictionary More... | |
override OnlineMapsJSONItem | AppendObject (object obj) |
Serializes the object and adds to the current json node. More... | |
void | Combine (OnlineMapsJSONItem other, bool overwriteExistingValues=false) |
Combines two JSON Object. More... | |
override object | Deserialize (Type type) |
Deserializes current element More... | |
object | Deserialize (Type type, IEnumerable< MemberInfo > members) |
Deserializes current element More... | |
override OnlineMapsJSONItem | GetAll (string k) |
Get all elements with the key on the first or the deeper levels of the current element. More... | |
override void | ToJSON (StringBuilder b) |
Converts the current and the child elements to JSON string. More... | |
override object | Value (Type type) |
Returns the value of the element, converted to the specified type. More... | |
![]() | |
T | ChildValue< T > (string childName) |
Returns the value of the child element, converted to the specified type. More... | |
T | Deserialize< T > () |
Deserializes current element More... | |
virtual T | Value< T > () |
Returns the value of the element, converted to the specified type. More... | |
T | V< T > () |
Returns the value of the element, converted to the specified type. More... | |
T | V< T > (string childName) |
Returns the value of the child element, converted to the specified type. More... | |
Static Public Member Functions | |
static OnlineMapsJSONObject | ParseObject (string json) |
Parse a string that contains JSON dictonary More... | |
Properties | |
Dictionary< string, OnlineMapsJSONItem > | table [get] |
Dictionary of items More... | |
![]() | |
abstract OnlineMapsJSONItem | this[int index] [get] |
Get the element by index More... | |
abstract OnlineMapsJSONItem | this[string key] [get] |
Get the element by key. Supports XPath like selectors: ["key"] - get element by key. ["key1/key2"] - get element key2, which is a child of the element key1. ["key/N"] - where N is number. Get array element by index N, which is a child of the element key1. ["key/*"] - get all array elements, which is a child of the element key1. ["//key"] - get all elements with the key on the first or the deeper levels of the current element. More... | |
The wrapper for JSON dictonary.
OnlineMapsJSONObject.OnlineMapsJSONObject | ( | ) |
Constructor
void OnlineMapsJSONObject.Add | ( | string | name, |
OnlineMapsJSONItem | value | ||
) |
Adds element to the dictionary
name | Key |
value | Value |
|
virtual |
Serializes the object and adds to the current json node.
obj | Object |
Reimplemented from OnlineMapsJSONItem.
void OnlineMapsJSONObject.Combine | ( | OnlineMapsJSONItem | other, |
bool | overwriteExistingValues = false |
||
) |
Combines two JSON Object.
other | Other JSON Object |
overwriteExistingValues | Overwrite the existing values? |
|
virtual |
object OnlineMapsJSONObject.Deserialize | ( | Type | type, |
IEnumerable< MemberInfo > | members | ||
) |
Deserializes current element
type | Type |
members | Members of variable |
|
virtual |
Get all elements with the key on the first or the deeper levels of the current element.
key | Key |
Implements OnlineMapsJSONItem.
|
static |
Parse a string that contains JSON dictonary
json | String that contains JSON dictonary |
|
virtual |
Converts the current and the child elements to JSON string.
b | StringBuilder instance |
Implements OnlineMapsJSONItem.
|
virtual |
Returns the value of the element, converted to the specified type.
type | Type of variable |
Implements OnlineMapsJSONItem.
|
get |
Dictionary of items