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

> Phân tích cú pháp, mã hóa, kiểm tra và chuyển đổi JSON.

<div className="real-category-page">
  Phân tích cú pháp, mã hóa, kiểm tra và chuyển đổi JSON.

  ## Hàm có sẵn

  <CardGroup cols={2}>
    <Card title="json.array" href="./json-array">
      Tao new table duoc danh dau la JSON array cho json.encode, sao chep sequence 1.#source khi co source table.
    </Card>

    <Card title="json.clone" href="./json-clone">
      Clone value bang cach encoding voi json.encode semantics roi decoding generated JSON tro lai thanh Lua values.
    </Card>

    <Card title="json.decode" href="./json-decode">
      Parse JSON string bang Real JSON parser va tra ve decoded Lua value, danh dau decoded arrays va objects cho JSON helpers.
    </Card>

    <Card title="json.decodeSafe" href="./json-decodesafe">
      Parse JSON bang cung parser voi json.decode va tra ve success flag thay vi throw cho parse errors.
    </Card>

    <Card title="json.encode" href="./json-encode">
      Serialize Lua value thanh JSON string bang Real JSON encoder. json.stringify duoc dang ky voi cung function.
    </Card>

    <Card title="json.encodePretty" href="./json-encodepretty">
      Serializes Lua value thanh readable formatted JSON string bang Real JSON encoder. json.pretty duoc dang ky vao cung function.
    </Card>

    <Card title="json.escape" href="./json-escape">
      Escape mot string bang Real JSON string escaping rules va tra ve escaped content khong co surrounding quotes.
    </Card>

    <Card title="json.format" href="./json-format">
      Parse JSON string va re-encode thanh readable formatted JSON bang Real JSON parser va encoder.
    </Card>

    <Card title="json.getPath" href="./json-getpath">
      Doc nested value tu table bang dotted string path hoac array table of keys.
    </Card>

    <Card title="json.isArray" href="./json-isarray">
      Tra ve value co duoc treated as a JSON array boi Real JSON table detection hay khong.
    </Card>

    <Card title="json.isNull" href="./json-isnull">
      Tra ve value co phai Real JSON null sentinel, json.null, hay khong.
    </Card>

    <Card title="json.isObject" href="./json-isobject">
      Tra ve value co duoc treated as a JSON object boi Real JSON table detection hay khong.
    </Card>

    <Card title="json.keys" href="./json-keys">
      Tra ve visible keys cua table trong new table marked as a JSON array.
    </Card>

    <Card title="json.minify" href="./json-minify">
      Parse JSON string va re-encode bang Real default non-pretty JSON encoder output.
    </Card>

    <Card title="json.object" href="./json-object">
      Tao new table marked as a JSON object de Real JSON encoder xu ly nhu object.
    </Card>

    <Card title="json.parse" href="./json-parse">
      Parse JSON string bang cung function nhu json.decode.
    </Card>

    <Card title="json.pretty" href="./json-pretty">
      Serializes Lua value thanh readable formatted JSON string bang cung function nhu json.encodePretty.
    </Card>

    <Card title="json.quote" href="./json-quote">
      Escape string bang Real JSON string escaping rules va tra ve complete quoted JSON string literal.
    </Card>

    <Card title="json.stringify" href="./json-stringify">
      Serialize Lua value thanh JSON string bang cung function nhu json.encode.
    </Card>

    <Card title="json.tryDecode" href="./json-trydecode">
      Thu parse JSON string bang cung function nhu json.decodeSafe va tra ve status values cho parse errors.
    </Card>

    <Card title="json.type" href="./json-type">
      Tra ve string type name cho mot gia tri. json.null tra ve "null". Table tra ve "array" hoac "object" bang cung table classification nhu json.isArray va json.isObject. Cac gia tri khac tra ve runtime Lua type name result.
    </Card>

    <Card title="json.unescape" href="./json-unescape">
      Decode JSON string escape sequences tu escaped string content hoac tu complete quoted JSON string literal. Input duoc parse bang JSON string parser, khong phai full JSON document.
    </Card>

    <Card title="json.validate" href="./json-validate">
      Validate mot JSON string bang cach parse mot complete JSON value duy nhat. Khi success chi tra ve true. Khi parse failure tra ve false cong parser error details.
    </Card>

    <Card title="json.values" href="./json-values">
      Tra ve direct values tu table trong mot table moi marked as JSON array. JSON kind marker entries duoc bo qua.
    </Card>
  </CardGroup>
</div>
