> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON

> Analise, codifique, inspecione e transforme JSON.

<div className="real-category-page">
  Analise, codifique, inspecione e transforme JSON.

  ## Funções disponíveis

  <CardGroup cols={2}>
    <Card title="json.array" href="./json-array">
      Cria uma new table marcada como JSON array para json.encode, copiando a sequence 1.#source quando uma source table e fornecida.
    </Card>

    <Card title="json.clone" href="./json-clone">
      Clona um value fazendo encoding com json.encode semantics e depois decoding do generated JSON de volta para Lua values.
    </Card>

    <Card title="json.decode" href="./json-decode">
      Faz parse de um JSON string com Real JSON parser e retorna o decoded Lua value, marcando decoded arrays e objects para os JSON helpers.
    </Card>

    <Card title="json.decodeSafe" href="./json-decodesafe">
      Faz parse de JSON com o mesmo parser de json.decode e retorna um success flag em vez de lancar para parse errors.
    </Card>

    <Card title="json.encode" href="./json-encode">
      Serializa um Lua value para JSON string usando Real JSON encoder. json.stringify e registrado para a mesma function.
    </Card>

    <Card title="json.encodePretty" href="./json-encodepretty">
      Serializa um Lua value para um JSON string legivel e formatado usando Real JSON encoder. json.pretty e registrado na mesma function.
    </Card>

    <Card title="json.escape" href="./json-escape">
      Escapa uma string usando Real JSON string escaping rules e retorna o escaped content sem surrounding quotes.
    </Card>

    <Card title="json.format" href="./json-format">
      Faz parse de um JSON string e re-encode como readable formatted JSON usando Real JSON parser e encoder.
    </Card>

    <Card title="json.getPath" href="./json-getpath">
      Le um nested value de uma table usando um dotted string path ou uma array table of keys.
    </Card>

    <Card title="json.isArray" href="./json-isarray">
      Retorna se um value e treated as a JSON array pela Real JSON table detection.
    </Card>

    <Card title="json.isNull" href="./json-isnull">
      Retorna se um value e o Real JSON null sentinel, json.null.
    </Card>

    <Card title="json.isObject" href="./json-isobject">
      Retorna se um value e treated as a JSON object pela Real JSON table detection.
    </Card>

    <Card title="json.keys" href="./json-keys">
      Retorna as visible keys de uma table em uma new table marked as a JSON array.
    </Card>

    <Card title="json.minify" href="./json-minify">
      Faz parse de um JSON string e re-encode usando Real default non-pretty JSON encoder output.
    </Card>

    <Card title="json.object" href="./json-object">
      Cria uma new table marked as a JSON object para que Real JSON encoder a trate como object.
    </Card>

    <Card title="json.parse" href="./json-parse">
      Faz parse de um JSON string usando a mesma function que json.decode.
    </Card>

    <Card title="json.pretty" href="./json-pretty">
      Serializa um Lua value para readable formatted JSON string usando a mesma function que json.encodePretty.
    </Card>

    <Card title="json.quote" href="./json-quote">
      Escapa uma string usando Real JSON string escaping rules e retorna um complete quoted JSON string literal.
    </Card>

    <Card title="json.stringify" href="./json-stringify">
      Serializa um Lua value para JSON string usando a mesma function que json.encode.
    </Card>

    <Card title="json.tryDecode" href="./json-trydecode">
      Tenta fazer parse de um JSON string usando a mesma function que json.decodeSafe e retorna status values para parse errors.
    </Card>

    <Card title="json.type" href="./json-type">
      Retorna um string type name para um valor. json.null retorna "null". Tabelas retornam "array" ou "object" usando a mesma table classification de json.isArray e json.isObject. Outros valores retornam o runtime Lua type name result.
    </Card>

    <Card title="json.unescape" href="./json-unescape">
      Decodifica JSON string escape sequences de escaped string content ou de um complete quoted JSON string literal. A entrada e parseada com o JSON string parser, nao como full JSON document.
    </Card>

    <Card title="json.validate" href="./json-validate">
      Valida um JSON string fazendo parse de um unico complete JSON value. Em success retorna apenas true. Em parse failure retorna false mais parser error details.
    </Card>

    <Card title="json.values" href="./json-values">
      Retorna os direct values de uma table em uma nova table marked as JSON array. JSON kind marker entries sao ignorados.
    </Card>
  </CardGroup>
</div>
