Skip to main content

split_body_json_array

Function split_body_json_array 

Source
pub fn split_body_json_array() -> SplitExpression
Expand description

Split a JSON array body into one fragment per element.

Fragment typing is element-driven: string elements produce Body::Text fragments carrying the raw string (so ${body} renders it unquoted); number, boolean, object, nested-array, and null elements produce Body::Json fragments.

Empty bodies and empty arrays pass through with zero fragments. Non-array JSON and wrong-type bodies return a CamelError::TypeConversionFailed naming the received body type and the expected json (array) input.