B2B Integration 10.5 | Administering and Monitoring B2B Transactions | Service Development Help | Working with JSON Document Types | What Is a JSON Document Type?
 
What Is a JSON Document Type?
A JSON document type defines the structure and types of data in a JSON schema. When you create a JSON document type from a JSON schema, Integration Server creates a root JSON node with document as the root and JSON schema field contents represented as a document type's field, which can include:
*JSON document type, each of which corresponds to a JSON object in a JSON schema.
*JSON document type fields each of which corresponds to JSON schema fields and contains validation properties.
JSON document type accurately represent JSON schema and provide support for JSON schema constructs than IS document types do. In general, a JSON document type can be used in the same ways as an IS document type but a publish/subscribe solution is an exception. JSON document type cannot be created manually or edited.
The following shows the format of a JSON schema and an example of JSON document type for the sample schema:
* JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/example.json",
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"streetAddress": {
"type": "string"
},
"city": {
"type": "string"
}
}
},
"phoneNumber": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"number": {
"type": "number"
}
}
}
}
}
}
* JSON Document Type
Destination folder

user provided [Document name ]

address [Document]

streetAddress [String]

city [String]

phoneNumber [Array of Documents]

type [String]

number [Object – java.lang.Double]

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.