ezhttp_option_set_body_from_json

Syntax

native bool:ezhttp_option_set_body_from_json(EzHttpOptions:options_id, EzJSON:json, bool:pretty = false);

Usage

Parameter Description
options_id
options_id
json
EzJSON handle
pretty
True to format pretty JSON string, false to not

Description

Copies serialized string to the requests body.

Note

Needs to be freed using ezjson_free() native.

Return

True if serialization was successful, false otherwise

Error

If passed handle is not a valid value. If passed options_id is not exists.