A Supported JSON Structures for Generic Event Information
The Generic Event Information section of the API allows you to add generic evented data to any event. The entries in these samples are only for reference purposes.
Note:
This section applies only to the following API Services:- Create Event
- Create Event and Promote to Case
- Create Event and Extend to Existing Case
Simple JSON with Simple Objects (One Level)
{
"Customer Details": {
"Victim Name": "John Doe",
"Victim SSN": "123-12-1234",
"Phone Number": "123-123-1234"
},
"Enterprise Customer Complaint": {
"Was a complaint filed through the
Enterprise Customer Complaint?": "Yes"
},
"Incident Details": {
"Incident Type": "Structuring",
"Account Type": "Consumer",
"Market": "Southwest Pennsylvania"
}
}
Figure A-1 Simple JSON with simple Objects (One Level)
Simple JSON with One Level of Array Object
{
"Customer Details": {
"Victim Name": "Ajay Devgan",
"Victim SSN": "123-12-1234",
"Phone Number": "123-123-1234",
"Address List": [{
"Address Type": "Office",
"Street": "MG Road",
"City": "Bangalore"
},
{
"Address Type": "Home",
"Street": "Victoria Road",
"City": "Mumbai"
},
{
"Address Type": "Branch",
"Street": "Wuhan Province",
"City": "Beijing"
}
]
},
"Enterprise Customer Complaint": {
"Was a complaint filed through the Enterprise Customer Complaint?":
"Yes"
},
"Incident Details": {
"Incident Type": "Structuring",
"Account Type": "Consumer",
"Market": "Southwest Mumbai"
}
}
Figure A-2 Simple JSON with one level of Array Object
Simple Object with Two levels of Array and Second Array being Simple String of Values
{
"Car Ownership Details": {
"Name": "John",
"Age": 30,
"Cars": [{
"Name": "Ford",
"Models": ["Fiesta", "Focus", "Mustang"]
},
{
"Name": "BMW",
"Models": ["320", "X3", "X5"]
},
{
"Name": "Fiat",
"Models": ["500", "Panda"]
}
]
}
}
Figure A-3 Simple Object with Two levels of Array and Second Array being simple String of Values
Simple Object with Two levels of Array and Second Array also Consisting of Key Values
{
"Car Branch Details": {
"Name": "INVENTORY1",
"Year": 2020,
"Cars": [{
"Name": "Ford",
"Branches": [{
"Name": "BLR",
"City": "Bangalore"
}, {
"Name": "MLR",
"City": "Mangalore"
}]
},
{
"Name": "Hyundai",
"Branches": [{
"Name": "DEL",
"City": "Delhi"
}, {
"Name": "RJK",
"City": "Rajkot"
}]
}
]
}
}
Figure A-4 Simple Object with Two levels of Array and Second Array also consisting of Key Values
Array JSON Object with Two Levels of Array and Second Array also Consisting of Key Values
{
"Bank Details": [{
"Name": "HDFC",
"Year": 1988,
"Departments": [{
"Name": "Credit",
"Employees": [{
"Name": "Virat",
"City": "Bangalore"
}, {
"Name": "Smith",
"City": "Jaipur"
}]
},
{
"Name": "Debit",
"Employees": [{
"Name": "Ricky",
"City": "Bangalore"
}, {
"Name": "Sanath",
"City": "Kandy"
}]
}
]
},
{
"Name": "ICICI",
"Year": 1992,
"Departments": [{
"Name": "Credit",
"Employees": [{
"Name": "Sachin",
"City": "Mumbai"
}, {
"Name": "Kapil",
"City": "Delhi"
}]
},
{
"Name": "Debit",
"Employees": [{
"Name": "Steve",
"City": "Sydney"
}, {
"Name": "Marvan",
"City": "Colombo"
}]
}
]
}
]
}
Figure A-5 Array JSON Object with Two Levels of Array and Second Array also Consisting of Key Values
Simple Object and Inside Simple Array of Strings
{
"Company Details": {
"Name": "Oracle",
"Branches": ["Mumbai", "Pune", "Bangalore"]
}
}
Figure A-6 Simple Object and Inside Simple Array of Strings
Array JSON Object with Two Levels of Array and Second Array Consisting of Simple Int Values
Also, Simple Array of Strings (For Example : Purposes)
{
"Customer Details": [{
"Name": "Jackson",
"Jurisdiction": ["Mumbai", "Pune", "Bangalore"],
"Departments": [{
"Name": "Credit",
"TransactionIds": [11, 12, 13]
},
{
"Name": "Debit",
"TransactionIds": [14, 15, 17]
}
]
},
{
"Name": "Dwayne",
"Jurisdiction": ["California", "Pune", "Delhi"],
"Departments": [{
"Name": "Credit",
"TransactionIds": [11.245, 12.345, 13]
},
{
"Name": "Debit",
"TransactionIds": [14, 15, 17]
}
]
}
],
"Purposes": ["Rental", "Shopping", "Travel"]
}
Figure A-7 Array JSON Object with two levels of Array and Second Array consisting of Simple Int Values
More than one Generic Entity Under Same Event
Figure A-8 More than one Generic Entity Under Same Event
Multiple Events selected on UI
JSON with Two Levels of Simple Object with One Level of Array Object
{
"Car Ownership Details": {
"Name": "John",
"Age": 30,
"Cars": [{
"Name": "Ford",
"Model": "Fiesta"
}
]
}
}
}
}
]
}
Figure A-10 JSON with Two Levels of Simple Object with One Level of Array Object
JSON with Two Levels of Simple Object with Two Levels of Array Object with Second Array Consisting of Simple Int Values
{
"Customer Details": [{
"Name": "Jackson",
"Jurisdiction": ["Mumbai", "Pune", "Bangalore"],
"Departments": [{
"Name": "Credit",
"TransactionIds": [11, 12, 13]
},
{
"Name": "Debit",
"TransactionIds": [14, 15, 17]
}
]
},
{
"Name": "Dwayne",
"Jurisdiction": ["California", "Pune", "Delhi"],
"Departments": [{
"Name": "Credit",
"TransactionIds": [11.245, 12.345, 13]
},
{
"Name": "Debit",
"TransactionIds": [14, 15, 17]
}
]
}
],
"Purposes": ["Rental", "Shopping", "Travel"]
}
}
}
]
}
Figure A-11 JSON with Two Levels of Simple Object with Two Levels of Array Object with Second Array Consisting of Simple Int Values