MA_PT

json

Library "json"
Convert JSON strings to tradingview       
▦ FEATURES ▦                        
█ Json to array  █ Get json key names  █ Get json key values █ Size of json
                 

get_json_keys_names(raw_json) Returns string array with all key names
  Parameters:
    raw_json: (string) Raw JSON string
  Returns: (string array) Array with all key names

get_values_by_id_name(raw_json, key_name) Returns string array with values of the input key name
  Parameters:
    raw_json: (string) Raw JSON string
    key_name: (string) Name of the key to be fetched
  Returns: (string array) Array with values of the input key name

size_of_json_string(raw_json) Returns size of raw JSON string
  Parameters:
    raw_json: (string) Raw JSON string
  Returns: Size of n_of_values, size of n_of_keys_names
Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.