Skip to main content

execute_publish_json

Function execute_publish_json 

Source
pub fn execute_publish_json(
    message: &mut Message,
    config: &PublishConfig,
) -> Result<(usize, Vec<Change>)>
Expand description

Execute publish_json operation.

Serializes data from the source path to a JSON string and stores it in the target data field.

§Arguments

  • message - The message to process (modified in place)
  • config - Publish configuration specifying source and target

§Returns

  • Ok((200, changes)) - Success with list of changes for audit trail
  • Err - If configuration is invalid or serialization fails