[%CFEngine_function_prototype(data_container)%]

Description: Converts a data container to a JSON string.

[This function can accept many types of data parameters.][Functions#collecting functions]

[%CFEngine_function_attributes(data_container)%]

Example:

[%CFEngine_include_example(storejson.cf)%]

History: The [collecting function][Functions#collecting functions] behavior was added in 3.9.

See also: readjson(), readyaml(), parsejson(), parseyaml(), [about collecting functions][Functions#collecting functions], and data documentation.