Hello everybody,
i like to read an json from a web api.
The following json show my example for a json for a car object:
{
"brand": "Audi",
"model": null,
"generation": null,
"yearOfProduction": "1991"
}
If i got the json, the values of 'model' and 'generation' are null.
But if I transform the json to a struct with "jsonToStruct" method
jsonToStruct sCarAsStruct, sCarAsJson
the values "model" and "generation" are empty strings
[]
[brand] = "Audi"
[model] = ""
[generation] = ""
[yearOfProduction] = "1991"
My question: Is it possible to get values "model" and "generation" from the struct object as null values?
Info: I like to save the car object in my database and want to difference between an empty string and a null value.
------------------------------
Viktor Kuenstler
Abrechnungszentrum Emmendingen
Emmendingen DE
------------------------------