Creating JSON schema using JSON schema wizard in BizTalk

 Introduction

Let us try to create a JSON schema in BizTalk using the sample JSON invoice given below.

{

    "invoiceNumber": "INV2023-001",
    "date": "2023-10-01",
    "dueDate": "2023-10-15",
    "customer": {
        "name": "ABC Company",
        "address": "123 Main Street",
        "city": "Anytown",
        "postalCode": "12345",
        "country": "USA"
    },
    "items": [
        {
            "description": "Product A",
            "quantity": 5,
            "unitPrice": 10.99,
            "total": 54.95
        },
        {
            "description": "Product B",
            "quantity": 3,
            "unitPrice": 15.99,
            "total": 47.97
        }
    ],
    "subTotal": 102.92,
    "taxRate": 0.08,
    "taxAmount": 8.23,
    "totalAmount": 111.15,
    "notes": "Thank you for your business!"
}

Steps

  • Right on the project -->Add -->New Item -->BizTalk Project Items
  • Click on JSON schema Wizard


  • Give the schema a proper name as shown below


  • Click next

  • Provide the path to the sample invoice file and provide the name of the root node and the target namespace. Click on Finish.



  • You can see that the JSON schema is created




Comments

Popular posts from this blog

EDI X12 Trading partner configuration in BizTalk

How to create an EDI 850 profile in Boomi?

Basics of Correlation in BizTalk