|
Online Maps v3
|
The wrapper for JSON value. More...
Public Types | |
| enum | ValueType |
| Type of value. | |
Public Member Functions | |
| OnlineMapsJSONValue (object value) | |
| Constructor. | |
| OnlineMapsJSONValue (object value, ValueType type) | |
| Constructor. | |
Public Member Functions inherited from OnlineMapsJSONItem | |
| virtual OnlineMapsJSONItem | AppendObject (object obj) |
| Serializes the object and adds to the current json node. | |
| T | ChildValue< T > (string childName) |
| Returns the value of the child element, converted to the specified type. | |
| T | Deserialize< T > () |
| Deserializes current element. | |
| object | Deserialize (Type type) |
| Deserializes current element. | |
| OnlineMapsJSONItem | GetAll (string key) |
| Get all elements with the key on the first or the deeper levels of the current element. | |
| void | ToJSON (StringBuilder b) |
| Converts the current and the child elements to JSON string. | |
| object | Value (Type type) |
| Returns the value of the element, converted to the specified type. | |
| virtual T | Value< T > () |
| Returns the value of the element, converted to the specified type. | |
| T | V< T > () |
| Returns the value of the element, converted to the specified type. | |
| T | V< T > (string childName) |
| Returns the value of the child element, converted to the specified type. | |
Properties | |
| object | value [get, set] |
| Gets / sets the current value. | |
| ValueType | type [get] |
| Get the type of value. | |
Properties inherited from OnlineMapsJSONItem | |
| OnlineMapsJSONItem | this[int index] [get] |
| Get the element by index. | |
| 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. | |
The wrapper for JSON value.
| OnlineMapsJSONValue.OnlineMapsJSONValue | ( | object | value | ) |
Constructor.
| value | Value |
| OnlineMapsJSONValue.OnlineMapsJSONValue | ( | object | value, |
| ValueType | type ) |
Constructor.
| value | Value |
| type | Type of value |