Skip to content

cache_get_json_type

imshooter edited this page Nov 29, 2026 · 1 revision

The type of a value inside a JSON cell of the active cache.

A JSON cell is parsed the first time it is read. A key is a member of the top object, or a JSON Pointer when it starts with a slash, as /position/0. With the latin1 character set, keys and strings are in the code page of the game.

native E_MYSQL_JSON_TYPE:cache_get_json_type(row_idx, const column_name[], const key[] = "");

With open.mp names, from the same include:

native E_MYSQL_JSON_TYPE:Cache_GetJSONType(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 type.
  • MYSQL_JSON_NONE when the cell, the key or the JSON 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