Skip to main content

Module parse

Module parse 

Source
Expand description

§Parse Function Module

Parsing helpers that load payload data into the message’s data context. Supports JSON (native) and XML (via serde_json::Value bridge — XML is the slow path, not worth a dedicated walker).

Source paths:

  • "payload" — entire payload
  • "payload.<path>" — a nested field of the payload
  • "data.<path>" — a nested field of the existing data context
  • "<path>" — anything else is resolved against the full context

Structs§

ParseConfig
Configuration for parse functions.

Functions§

execute_parse_json
Execute parse_json: read the source value and store it under data.{target}. If the source is a JSON string, attempt to parse it; on failure, store the string as-is (matches prior behaviour).
execute_parse_xml
Execute parse_xml: read the source string, parse XML into a serde_json::Value (existing quick-xml path), convert to OwnedDataValue, store under data.{target}.