Skip to main content

from_json

Function from_json 

Source
pub fn from_json(
    json: &str,
    config: &FromJsonConfig,
) -> Result<Document, JsonConversionError>
Expand description

Convert JSON string to HEDL Document

§Arguments

  • json - JSON string to parse
  • config - Configuration for import behavior and security limits

§Returns

  • Ok(Document) - Successfully parsed HEDL document
  • Err(JsonConversionError) - Parsing or validation error