assemblyscript-json / JSONHandler
Extend from this class to handle events from parser. Default implementation traverses whole object tree and does nothing.
-
JSONHandler
+ new JSONHandler(): JSONHandler
Returns: JSONHandler
▸ popArray(): void
Returns: void
Defined in: decoder.ts:22
▸ popObject(): void
Returns: void
Defined in: decoder.ts:28
▸ pushArray(name
: string): bool
Name | Type |
---|---|
name |
string |
Returns: bool
Defined in: decoder.ts:18
▸ pushObject(name
: string): bool
Name | Type |
---|---|
name |
string |
Returns: bool
Defined in: decoder.ts:24
▸ setBoolean(name
: string, value
: bool): void
Name | Type |
---|---|
name |
string |
value |
bool |
Returns: void
Defined in: decoder.ts:10
▸ setFloat(name
: string, value
: number): void
Name | Type |
---|---|
name |
string |
value |
number |
Returns: void
Defined in: decoder.ts:16
▸ setInteger(name
: string, value
: number): void
Name | Type |
---|---|
name |
string |
value |
number |
Returns: void
Defined in: decoder.ts:14
▸ setNull(name
: string): void
Name | Type |
---|---|
name |
string |
Returns: void
Defined in: decoder.ts:12
▸ setString(name
: string, value
: string): void
Name | Type |
---|---|
name |
string |
value |
string |
Returns: void
Defined in: decoder.ts:8