Skip to main content

Importing/Creating JSON Definitions

Since JSON does not have a standard means of specifying a schema (like XML Schema), the usual way of automatically creating the JSON structure is to import a sample JSON document. It is important that this sample document have all of the possible objects and non-object values that can occur in any JSON instance documents. If this is not the case, then it's possible to get runtime errors when processing the JSON instance documents since required elements will not be present in the structure.

It is possible to manually create a JSON structure or manually modify the imported JSON structure to add the missing elements, so long as you follow the conventions in this section.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!