Skip to main content

expect_string

Function expect_string 

Source
pub fn expect_string(value: &Value, path: &Path) -> Result<String, DecodeError>
Expand description

Reads a JSON string.

ยงErrors

Returns DecodeError when value is not a string.