Skip to main content

parse_script_response

Function parse_script_response 

Source
pub fn parse_script_response(s: &str) -> Result<ScriptResponse>
Expand description

Parse script response from JSON string

Scripts should return a JSON object with actions array: {"actions": [{"type": "...", ...}, ...]} For backwards compatibility, also accepts a bare array: [{"type": "...", ...}, ...]