Skip to main content

embed_json

Function embed_json 

Source
pub fn embed_json(value: &Value) -> String
Expand description

Serialize JSON and escape so embedded payload cannot close a surrounding <script> tag.