Skip to content

cache_get_json_bool

imshooter edited this page Nov 29, 2026 · 1 revision

Read a value inside a JSON cell of the active cache as a bool.

native bool:cache_get_json_bool(row_idx, const column_name[], const key[], &bool:destination);

With open.mp names, from the same include:

native bool:Cache_GetJSONBool(row_idx, const column_name[], const key[], &bool:destination);

Parameters

Parameter Description
row_idx The row, from 0.
const column_name[] The name of the field.
const key[] The key, or "" for the whole cell.
&bool:destination Variable for the value, left as it was when it is not read.

Returns

  • true when it was written.
  • false when the value is missing, or is no number, bool nor string.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally