When getting data from external API, I receive an object where a value is false when it is empty.
For example:
"product_id": [7800,"Bananenblad Naturel - 484"]
OR
"product_id": false
"picking_date": false
OR
"picking_date": "2023-08-11 10:10:39"
How can deserialize this kind of object?
An example of the object:
{
"id": 1111,
"product_id": [
2222,
"test 1"
],
"product_qty": 1.0,
"picking_date": false,
"partner_id": [
10,
"Funeral"
],
"picking_id": [
20,
"Testing"
],
"picking_state": "cancel"
},
{
"id": 2222,
"product_id": [
3333,
"Primus"
],
"product_qty": 1.0,
"picking_date": "2023-08-11 10:10:39",
"partner_id": false,
"picking_id": false,
"picking_state": "cancel"
}
I've tried using JSON converter options, ignore error handling with deserializer, ... different types of object types etc.