assemblyscript-json / JSON / Obj
JSON.Obj
-
↳ Obj
- _set
- get
- getArr
- getBool
- getFloat
- getInteger
- getNum
- getString
- getValue
- has
- set
- toString
- valueOf
- Array
- Bool
- Float
- Integer
- Null
- Number
- Object
- String
+ new Obj(): Obj
Returns: Obj
Inherited from: Value
Defined in: JSON.ts:301
• _obj: Map<string, Value>
Defined in: JSON.ts:300
• keys: string[]
Defined in: JSON.ts:301
• isArr(): boolean
Returns: boolean
Defined in: JSON.ts:178
• isBool(): boolean
Returns: boolean
Defined in: JSON.ts:164
• isFloat(): boolean
Returns: boolean
Defined in: JSON.ts:150
• isInteger(): boolean
Returns: boolean
Defined in: JSON.ts:157
• isNull(): boolean
Returns: boolean
Defined in: JSON.ts:171
• isNum(): boolean
Returns: boolean
Defined in: JSON.ts:143
• isObj(): boolean
Returns: boolean
Defined in: JSON.ts:185
• isString(): boolean
Returns: boolean
Defined in: JSON.ts:136
▸ Private_set(key: string, value: Value): void
| Name | Type |
|---|---|
key |
string |
value |
Value |
Returns: void
Defined in: JSON.ts:333
▸ get(key: string): null | Value
| Name | Type |
|---|---|
key |
string |
Returns: null | Value
Defined in: JSON.ts:344
▸ getArr(key: string): null | Arr
| Name | Type |
|---|---|
key |
string |
Returns: null | Arr
Defined in: JSON.ts:395
▸ getBool(key: string): null | Bool
| Name | Type |
|---|---|
key |
string |
Returns: null | Bool
Defined in: JSON.ts:387
▸ getFloat(key: string): null | Float
| Name | Type |
|---|---|
key |
string |
Returns: null | Float
Defined in: JSON.ts:371
▸ getInteger(key: string): null | Integer
| Name | Type |
|---|---|
key |
string |
Returns: null | Integer
Defined in: JSON.ts:379
▸ getNum(key: string): null | Num
| Name | Type |
|---|---|
key |
string |
Returns: null | Num
Defined in: JSON.ts:363
▸ getString(key: string): null | Str
| Name | Type |
|---|---|
key |
string |
Returns: null | Str
Defined in: JSON.ts:355
▸ getValue(key: string): null | Value
| Name | Type |
|---|---|
key |
string |
Returns: null | Value
Defined in: JSON.ts:351
▸ has(key: string): bool
| Name | Type |
|---|---|
key |
string |
Returns: bool
Defined in: JSON.ts:340
▸ set<T>(key: string, value: T): void
| Name |
|---|
T |
| Name | Type |
|---|---|
key |
string |
value |
T |
Returns: void
Defined in: JSON.ts:324
▸ toString(): string
Returns: string
Overrides: Value
Defined in: JSON.ts:309
▸ valueOf(): Map<string, Value>
Returns: Map<string, Value>
Defined in: JSON.ts:319
▸ StaticArray(): Arr
Returns: Arr
Inherited from: Value
Defined in: JSON.ts:129
▸ StaticBool(b: bool): Bool
| Name | Type |
|---|---|
b |
bool |
Returns: Bool
Inherited from: Value
Defined in: JSON.ts:123
▸ StaticFloat(num: number): Float
| Name | Type |
|---|---|
num |
number |
Returns: Float
Inherited from: Value
Defined in: JSON.ts:117
▸ StaticInteger(num: number): Integer
| Name | Type |
|---|---|
num |
number |
Returns: Integer
Inherited from: Value
Defined in: JSON.ts:120
▸ StaticNull(): Null
Returns: Null
Inherited from: Value
Defined in: JSON.ts:126
▸ StaticNumber(num: number): Num
| Name | Type |
|---|---|
num |
number |
Returns: Num
Inherited from: Value
Defined in: JSON.ts:114
▸ StaticObject(): Obj
Returns: Obj
Inherited from: Value
Defined in: JSON.ts:132
▸ StaticString(str: string): Str
| Name | Type |
|---|---|
str |
string |
Returns: Str
Inherited from: Value
Defined in: JSON.ts:111