PINE LIBRARY

jsonbuilder

1 639
Library "jsonbuilder"
JsonBuilder for easiest way to generate json string

JSONBuilder(pairs)
  Create JSONBuilder instance
  Parameters:
    pairs (array<string>): Pairs list, not required for users

method addField(this, key, value, kind)
  Add Json Object
  Namespace types: _JSONBuilder
  Parameters:
    this (_JSONBuilder)
    key (string): Field key
    value (string): Field value
    kind (series Kind): Kind value

method execute(this)
  Create json string
  Namespace types: _JSONBuilder
  Parameters:
    this (_JSONBuilder)

method addArray(this, key, value)
  Add Json Array
  Namespace types: _JSONBuilder
  Parameters:
    this (_JSONBuilder)
    key (string): Field key
    value (array<_JSONBuilder>): Object value array

method addObject(this, key, value)
  Add Json Object
  Namespace types: _JSONBuilder
  Parameters:
    this (_JSONBuilder)
    key (string): Field key
    value (_JSONBuilder): Object value

_JSONBuilder
  JSONBuilder type
  Fields:
    pairs (array<string>): Pairs data

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.