Skip to content

cache_get_json_key

imshooter edited this page Nov 29, 2026 · 1 revision

The name of a member of an object inside a JSON cell of the active cache, by its position.

native bool:cache_get_json_key(
    row_idx,
    const column_name[],
    index,
    destination[],
    max_len = sizeof (destination),
    const path[] = ""
);

With open.mp names, from the same include:

native bool:Cache_GetJSONKey(
    row_idx,
    const column_name[],
    index,
    destination[],
    max_len = sizeof (destination),
    const path[] = ""
);

Parameters

Parameter Description
row_idx The row, from 0.
const column_name[] The name of the field.
index The position of the member, from 0.
destination[] Array for the name.
max_len = sizeof (destination) Size of the array.
const path[] = "" The key of the object, or "" for the whole cell.

Returns

  • true when it was written.
  • false when the value is no object, or it has no such member.

Home

Guides

Reference

Functions

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

Clone this wiki locally