Skip to content

MySQL_GetJSONString

imshooter edited this page Oct 24, 2026 · 1 revision

A value of a JSON cell as a string. An object or an array is written as JSON.

native bool:MySQL_GetJSONString(row, const field[], const key[], value[], size = sizeof (value));

Parameters

Parameter Description Default
row The row, from 0.
const field[] Name of the field.
const key[] Member of the top object or a JSON Pointer.
value[] Array for the text.
size Size of the array. sizeof (value)

Returns

  • true when the text was written.
  • false when the value does not exist or is null.

Remarks

A string gives its text. Any other value gives its JSON, so an object or an array can be read whole. With the latin1 character set, the text is converted from UTF-8 to the code page of the game, escaped letters such as \u00e7 included.

Related

Clone this wiki locally