JSON to Stof

Turning a JSON document into a Stof document.

For defining data, Stof is a superset of JSON - valid JSON will always be valid Stof.

This is a kind of funny page to create since Stof can parse JSON. However, explicitly showing how Stof ties into an existing interchange format is helpful for later, when we add more complex custom interfaces and unify data.

{
    "resourceType" : "Patient",
    "id" : "example",
    "active" : true,
    "name" : [
        {
            "use" : "official",
            "family" : "Chalmers",
            "given" : ["Peter", "James"]
        },
        {
            "use" : "usual",
            "given" : ["Jim"]
        },
        {
            "use" : "maiden",
            "family" : "Windsor",
            "given" : ["Peter", "James"],
            "period" : {
                "end" : "2002"
            }
        }
    ]
}

Last updated