Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 661 Bytes

storejson.markdown

File metadata and controls

24 lines (15 loc) · 661 Bytes
layout title published
default
storejson
true

[%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:

  • Introduced in CFEngine 3.6.0
  • 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.