Skip to main content

not_found_json

Function not_found_json 

Source
pub fn not_found_json(ids: &[Id]) -> Value
Expand description

Convert a slice of Ids to a JSON notFound value.

Returns Value::Null when the slice is empty (the notFound field will be JSON null, which RFC 8620 ยง5.1 specifies when no ids are not-found), or Value::Array of string ids when non-empty.