Skip to main content

write

Function write 

Source
pub fn write<T: ToJson>(value: &T) -> Value
Expand description

Write a vocabulary value as a document: in Ojak’s spelling, under Ojak’s context.

This is the counterpart of read, and only for the top of a document. A value’s own ToJson writes no @context, because an object embedded in another takes its context from the document around it.