Skip to main content

pretty_with_schema

Function pretty_with_schema 

Source
pub fn pretty_with_schema(v: &Value, name: &str) -> String
Expand description

JSON の値 v を整形した文字列にし、先頭に名前のスキーマの $schema を入れる(v の中の $schema は外す)