json_object_set_real

Синтаксис

native bool:json_object_set_real(JSON:object, const name[], Float:number, bool:dot_not = false);

Употреба

object
Object handle
name
Key name
number
Real number to set
dot_not
True to use dot notation, false to not

Описание

Sets a real number in the object.

Забележка

If dot notation is used some values may be inaccessible
because valid names in JSON can contain dots.

Забележка

It also removes the old value if any.

Връщаща стойност

True if succeed, false otherwise

Грешка

If passed handle is not a valid object