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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。