<< corr_matrix bytecode_iot_module favor_createData >>

bytecode_iot_module >> bytecode_iot_module > create_JSON

create_JSON

Create a JSON-formatted data

Syntax

jsonbody = create_JSON(key1,val1)
jsonbody = create_JSON(key1,val1,key2,val2,...)

Parameters

key1, key2, ..., keyn :

String. Device key/variable

val1, val2, ..., valn :

String or constant. The key's value

jsonbody :

A data string in JSON Format

Description

Creates a JSON-formatted data. The input needs to be in key-value pairs.

Examples

jsonbody = create_JSON("temp",25.5,"humidity","83%")

See also

Authors


Report an issue
<< corr_matrix bytecode_iot_module favor_createData >>