Function |from_option_string

json/value::|from_option_string


Usage

|from_option_string<S>(value)

Generics

◻ S: ToString

Parameters

↳ value: Option<S>

Return

↴ Json


Makes a JSON string or null value.

If value is some string, it is turned into JSON string, else if value is none, null JSON value is returned.