Skip to content

cache_get_json_count

imshooter edited this page Nov 29, 2026 · 1 revision

The members of an object or the items of an array inside a JSON cell of the active cache.

native cache_get_json_count(row_idx, const column_name[], const key[] = "");

With open.mp names, from the same include:

native Cache_GetJSONCount(row_idx, const column_name[], const key[] = "");

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.

Returns

  • The number of members or items.
  • 0 when the value is no object nor array, or it is missing.

Home

Guides

Reference

Functions

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

Clone this wiki locally