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

> 返回 value 是否为 Real JSON null sentinel，也就是 json.null。

<div className="real-function-page">
  ```lua theme={null}
  json.isNull(value: any): boolean
  ```

  ## 参数

  <ParamField path={"value"} type={"any"} required>
    要 inspect 的 value。只有 json.null value 返回 true；Lua nil 和 other values 返回 false。
  </ParamField>

  ## 返回值

  <ResponseField name={"isNull"} type={"boolean"}>
    当 value 是 exact json.null sentinel 时返回 true，否则 false。
  </ResponseField>

  ## 示例

  Check value 是否是 json.null sentinel，而不是 Lua nil。

  ```lua theme={null}
  local value = json.decode("null")

  if json.isNull(value) then
      print("The value is JSON null")
  end

  print(json.isNull(nil))
  ```
</div>
