Menu

instanceDocument

Russ Jackson
{
    "document": {
        "type" : "instance",
        "namespace": "org.hawksoft",
        "id": "test",
        "version": "1.0"
    },
    "test-date" : "2013-12-28",
    "test-int" : 14,
    "test-boolean" : false,
    "test-long" : 12942,
    "test-double" : 18.6,
    "test-enum" : "red",
    "test-string" : "grows on trees",
    "test-uuid" : "09e1d4d9-3c36-4a39-a447-419873285b44",
    "test-object" : {
        "o-nested-date" : "2014-01-10T01:00:05.237 -0600",
        "o-nested-int" : -18,
        "o-nested-boolean" : true,
        "o-nested-long" : 4100200300,
        "o-nested-double" : 98.6,
        "o-nested-enum" : "green",
        "o-nested-string" : "an apple a day...",
        "o-nested-uuid" : "3a20a4d8-98aa-441f-9724-9969575187b2"
    },
    "test-nested-object" : {
        "nested-object" : {
            "o-o-nested-date" : "2117",
            "o-o-nested-int" : 1492,
            "o-o-nested-boolean" : true,
            "o-o-nested-long" : -4100200300,
            "o-o-nested-double" : 33.25,
            "o-o-nested-enum" : "yellow",
            "o-o-nested-string" : "ooo ooo aah aah",
            "o-o-nested-uuid" : "760892ed-9fe4-47e4-adee-c70dcc98b866"
        }
    },
    "test-array-ints" : [
        10,12,15,17,18
    ],
    "test-array-objects" : [
        {
            "a-o-nested-date" : "01/10/2014",
            "a-o-nested-int" : 18,
            "a-o-nested-boolean" : true,
            "a-o-nested-long" : 4100200300,
            "a-o-nested-double" : 212.0,
            "a-o-nested-enum" : "blue",
            "a-o-nested-string" : "marmalade anyone?",
            "a-o-nested-uuid" : "a025ffb1-087c-4fc3-b24e-d1b4bca04094"
        }
    ]
}

Related

Wiki: json-schema overview

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.