Welcome Guest, Not a member yet? Register   Sign In
I can't validate array in json.
#4

I use the current version 4.1.3.Below is a json that is wrong, but passes validation:

{
"api_key": "syPK1zJAUT",
"date_expire": "2021-07-27 00:01:00",
"customer":
{
"name": "Reinaldo",
"email": "[email protected]",
"external_id": "1"
},
"items":
[
{
"id": "1",
"name": "Notebook Dell",
"description": "Notebook Dell 4GB",
"value": "3000"
},
{
"ii": "2",
"name": "Notebook Samsung",
"description": "Notebook Samsung 4GB",
"value": "3000"
}
],
"amount": "6000"
}

Note that the second product id is wrong, but in validation it does not affect any
Reply


Messages In This Thread
I can't validate array in json. - by reinaldo07 - 07-26-2021, 07:04 PM
RE: I can't validate array in json. - by paliz - 07-27-2021, 01:18 AM
RE: I can't validate array in json. - by reinaldo07 - 07-27-2021, 03:18 AM
RE: I can't validate array in json. - by InsiteFX - 07-27-2021, 05:03 AM
RE: I can't validate array in json. - by paliz - 07-27-2021, 05:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB