Skip to main content

ingest_json_with_provider_ns

Function ingest_json_with_provider_ns 

Source
pub fn ingest_json_with_provider_ns(
    json_src: &str,
    provider_host_or_tld: &str,
) -> Result<Value, String>
Expand description

Parses raw JSON, uplifts all bare property keys into the provider’s domain/TLD namespace (https://{host}/ns#{key}), and encodes the uplifted structure into compressed CBOR-LD (0x0501).