> ## 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

> Analizuj, koduj, sprawdzaj i przekształcaj JSON.

<div className="real-category-page">
  Analizuj, koduj, sprawdzaj i przekształcaj JSON.

  ## Dostępne funkcje

  <CardGroup cols={2}>
    <Card title="json.array" href="./json-array">
      Tworzy new table oznaczona jako JSON array dla json.encode, kopiujac sequence 1.#source, gdy podano source table.
    </Card>

    <Card title="json.clone" href="./json-clone">
      Klonuje value przez encoding z json.encode semantics i decoding generated JSON z powrotem do Lua values.
    </Card>

    <Card title="json.decode" href="./json-decode">
      Parsuje JSON string przy uzyciu Real JSON parser i zwraca decoded Lua value, oznaczajac decoded arrays i objects dla JSON helpers.
    </Card>

    <Card title="json.decodeSafe" href="./json-decodesafe">
      Parsuje JSON tym samym parserem co json.decode i zwraca success flag zamiast rzucac dla parse errors.
    </Card>

    <Card title="json.encode" href="./json-encode">
      Serializuje Lua value do JSON string przy uzyciu Real JSON encoder. json.stringify jest zarejestrowane do tej samej function.
    </Card>

    <Card title="json.encodePretty" href="./json-encodepretty">
      Serializuje Lua value do readable formatted JSON string przy uzyciu Real JSON encoder. json.pretty jest zarejestrowane do tej samej function.
    </Card>

    <Card title="json.escape" href="./json-escape">
      Escape'uje string uzywajac Real JSON string escaping rules i zwraca escaped content bez surrounding quotes.
    </Card>

    <Card title="json.format" href="./json-format">
      Parsuje JSON string i ponownie encode'uje go jako readable formatted JSON przy uzyciu Real JSON parser i encoder.
    </Card>

    <Card title="json.getPath" href="./json-getpath">
      Czyta nested value z table przy uzyciu dotted string path albo array table of keys.
    </Card>

    <Card title="json.isArray" href="./json-isarray">
      Zwraca, czy value jest treated as a JSON array przez Real JSON table detection.
    </Card>

    <Card title="json.isNull" href="./json-isnull">
      Zwraca, czy value jest Real JSON null sentinel, json.null.
    </Card>

    <Card title="json.isObject" href="./json-isobject">
      Zwraca, czy value jest treated as a JSON object przez Real JSON table detection.
    </Card>

    <Card title="json.keys" href="./json-keys">
      Zwraca visible keys z table w new table marked as a JSON array.
    </Card>

    <Card title="json.minify" href="./json-minify">
      Parsuje JSON string i ponownie encode'uje go przez Real default non-pretty JSON encoder output.
    </Card>

    <Card title="json.object" href="./json-object">
      Tworzy new table marked as a JSON object, aby Real JSON encoder traktowal ja jako object.
    </Card>

    <Card title="json.parse" href="./json-parse">
      Parsuje JSON string ta sama function co json.decode.
    </Card>

    <Card title="json.pretty" href="./json-pretty">
      Serializuje Lua value do readable formatted JSON string przy uzyciu tej samej function co json.encodePretty.
    </Card>

    <Card title="json.quote" href="./json-quote">
      Escape'uje string uzywajac Real JSON string escaping rules i zwraca complete quoted JSON string literal.
    </Card>

    <Card title="json.stringify" href="./json-stringify">
      Serializuje Lua value do JSON string przy uzyciu tej samej function co json.encode.
    </Card>

    <Card title="json.tryDecode" href="./json-trydecode">
      Probuje parse JSON string ta sama function co json.decodeSafe i zwraca status values dla parse errors.
    </Card>

    <Card title="json.type" href="./json-type">
      Zwraca string type name dla wartosci. json.null zwraca "null". Tabele zwracaja "array" albo "object" przy uzyciu tej samej table classification co json.isArray i json.isObject. Inne wartosci zwracaja runtime Lua type name result.
    </Card>

    <Card title="json.unescape" href="./json-unescape">
      Dekoduje JSON string escape sequences z escaped string content albo z complete quoted JSON string literal. Wejscie jest parsowane przez JSON string parser, nie jako full JSON document.
    </Card>

    <Card title="json.validate" href="./json-validate">
      Waliduje JSON string przez parse jednej complete JSON value. Przy success zwraca tylko true. Przy parse failure zwraca false oraz parser error details.
    </Card>

    <Card title="json.values" href="./json-values">
      Zwraca direct values z table w nowej table marked as JSON array. JSON kind marker entries sa pomijane.
    </Card>
  </CardGroup>
</div>
