native

json_array_replace_value

Syntax

native bool:json_array_replace_value(JSON:array, index, const JSON:value);

Description

Replaces an element in the array with value.

Parameters

array Array handle
index Position in the array to be replaced
value JSON handle to set

Return

True if succeed, false otherwise

Error

If passed handle is not a valid array