DynamicJsJsonReader

class DynamicJsJsonReader(val root: dynamic, pathRoot: Array<Any> = emptyArray())

A JsonReader that reads data from a javascript dynamic

Map values should be any of:

  • String

  • Int

  • Double

  • Long

  • JsonNumber

  • null

  • dynamic where values are any of these values recursively

  • Array where values are any of these values recursively

Anything else is undefined

To read from a okio.BufferedSource, see also BufferedSourceJsonReader

Parameters

root

the root Map to read from

pathRoot

the path root to be prefixed to the returned path when calling getPath. Useful for buffer.

Constructors

Link copied to clipboard
constructor(root: dynamic, pathRoot: Array<Any> = emptyArray())

Properties

Link copied to clipboard
val root: dynamic

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPath(): List<Any>
Link copied to clipboard
open fun hasNext(): Boolean
Link copied to clipboard
open fun nextBoolean(): Boolean
Link copied to clipboard
open fun nextDouble(): Double
Link copied to clipboard
open fun nextInt(): Int
Link copied to clipboard
open fun nextLong(): Long
Link copied to clipboard
open fun nextName(): String
Link copied to clipboard
open fun nextNull(): Nothing?
Link copied to clipboard
open fun nextNumber(): <Error class: unknown class>
Link copied to clipboard
open fun nextString(): String
Link copied to clipboard
fun nextValue(): Any
Link copied to clipboard
open fun peek(): <Error class: unknown class>
Link copied to clipboard
open fun rewind()

Rewinds to the beginning of the current object.

Link copied to clipboard
open fun selectName(names: List<String>): Int
Link copied to clipboard
open fun skipValue()