THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"@type" : "JSON_Document" | Fully qualified className, <-- The name of the object type being defined
"@typeId" : , <-- A numberic field which would uniquely identify the type
"fields":[ <-- A collection of fields
{
"fieldName" : , <-- The name of the field
"dataType" : "String" | "Integer" | "Double" | "Date" | Object (def), <-- The data type of the field (Not required when using @refTypeId)
"@refTypeId" : , <-- The reference to an already defined type
"format" : "MM/dd/yyyy hh:mm:ss:SSS " | "#0.00" <-- Optional field to provide a format when dealing with dates of doubles
},
{
"fieldName" : , <-- The name of the field
"dataType" : "List", <-- Indicates data type is a list/array
"@refTypeId" : , <-- Numeric reference to an already defined type, which will be populated in the list
},
{
"fieldName": , <-- The name of the field
"dataType": "List", <-- Indicates data type is a list/array
"subType": "String" | "Integer" | "Double" | "Date" <-- The data type of the elements of a List
"format": "MM/dd/yyyy hh:mm:ss:SSS " | "#0.00" <-- Optional field to provide a format when dealing with dates of doubles
}
}
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[ { "@type": "JSON_Document", "@typeId": 1, "fields": [ { "fieldName": "firstName", "dataType": "String" }, { "fieldName": "lastName", "dataType": "String" }, { "fieldName": "age", "dataType": "Integer" }, { "fieldName": "currentAddress", "@refTypeId": 2 }, { "fieldName": "previousAddresses", "dataType": "List", "@refTypeId": 2 }, { "fieldName": "luckyNumber", "dataType": "List" }, { "fieldName": "dateOfBirth", "dataType": "Date", "format": "MM/dd/yyyy" }, { "fieldName": "lastUpdated", "dataType": "Date", "format": "MM/dd/yyyy hh:mm:ss:SSS" } ] }, { "@type": "JSON_Document", "@typeId": 2, "fields": [ { "fieldName": "addressLine1", "dataType": "String" }, { "fieldName": "addressLine2", "dataType": "String" }, { "fieldName": "addressLine3", "dataType": "String" }, { "fieldName": "state", "dataType": "String" }, { "fieldName": "zipCode", "dataType": "String" }, { "fieldName": "country", "dataType": "String" } ] } ] |
...