Skip to main content

parse_json_string

Function parse_json_string 

Source
pub fn parse_json_string(code: &str) -> String
Expand description

Parse WXML and return the result as a JSON string directly, avoiding the expensive serde_json::from_str → Value step. Use this when the consumer will parse JSON on the JS side (e.g. JSON.parse()).