- mike S
- PowerBuilder
- Wednesday, 14 February 2024 04:22 PM UTC
PB 2022 R3:
If you add a date using the jsongenerator::
objectname.AddItemDate ( ParentItemHandle, Value )
the json created is a string: {"mykey":"2017-09-21"}.
Instead, I expected it to add a date since, i told it to add a date and not a string.
this is what i expected it to look like:
ls_Json = '{"datetime":7234930293, "date": "2017-09-21"}'
or maybe
ls_Json = '{"date":7234930293, "date": "2017-09-21"}'
I should be able to use the jsonparser object GetItemType to get the type. Its weird that it won't actually return the type of date, but instead returns JsonObjectItem! which then requires another getitemstring to see what the time is. but in any case, it does none of that, but instead returns string as the type.
what is supposed to happen here?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.