PINE LIBRARY

jsonbuilder

1 632
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

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。