Skip to content

Commit 6c87f09

Browse files
committed
Datakit additions
1 parent a9ec97b commit 6c87f09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/_kong_plugins/datakit/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,8 @@ For more detailed examples, see:
14251425

14261426
### XML to JSON node {% new_in 3.13 %}
14271427

1428-
Transforms XML strings to JSON or a Lua table.
1428+
Transforms XML strings to JSON or a Lua table. Empty XML tags or elements are converted into empty JSON objects. The resulting JSON won't preserve any information about the original XML element order.
1429+
14291430

14301431
See the [configuration reference](/plugins/datakit/reference/#schema--config-nodes) and select `xml_to_json` from the node object dropdown to see all node attributes.
14311432

@@ -1486,12 +1487,12 @@ For an example of using this node as part of a workflow, see [Transform JSON int
14861487

14871488
### JSON to XML node {% new_in 3.13 %}
14881489

1489-
Transforms JSON strings or Lua tables into XML.
1490+
Transforms JSON strings or Lua tables into XML. Empty string, empty array, and empty object values are converted into empty XML elements. The resulting XML won't preserve any information about the original JSON object key order.
14901491

14911492
See the [configuration reference](/plugins/datakit/reference/#schema--config-nodes) and select `json_to_xml` from the node object dropdown to see all node attributes.
14921493

14931494
{:.info}
1494-
> **Note:** One of the `attributes_block_name` or `attributes_name_prefix` is required.
1495+
> The order of elements in the generated XML is non-deterministic and must not be relied upon.
14951496

14961497
#### Examples
14971498

0 commit comments

Comments
 (0)