json_object_set_null

Syntax

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

Usage

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

Description

Sets a null in the object.

Note

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

Note

It also removes the old value if any.

Return

True if succeed, false otherwise

Error

If passed handle is not a valid object