Discussions

Ask a Question
Back to All

readme.io create incorrect JSON structure

JSON incorrect structure through README.IO-------------------------------------------

{
"person": {
"kyc_data": [
{
"value": {
"type": "ppn",
"number": "123456",
"nationality": "UA"
},
"key": "identity_document"
},
{
"value": {
"city": "Irpin",
"state": "",
"county": "",
"Holmyvägen, 16": "Sadova",
"country": "UA",
"postal_code": "",
"unit_number": "",
"building_name": "",
"building_number": "1"
},
"key": "residential_address"
}

JSON correct structure---------------------------------------------------

"person": {
"kyc_data": [
{
"key": "identity_document",
"value": {
"type": "ppn",
"number": "789789",
"nationality": "BE"
}
},
{
"key": "residential_address",
"value": {
"city": "Vienna",
"state": null,
"county": null,
"street": "Main Street",
"country": "BE",
"postal_code": null,
"unit_number": null,
"building_name": null,
"building_number": "1"
}
}
],

'