Cecil
19+ years progress programming and still learning.
Ref:
OpenEdge 11.6.3
Windows 10 Pro
The following example code fails with the errors 13843 and 14457.
Error Message:
In the documentation it says passing a value of unknown will result in a JSON null value.
My workaround is to wrap the unknown value with an integer function. My question, is this a bug?
If it is a bug, I guess it won't be fixed because it's been like this for too many revisions of OpenEdge.
OpenEdge 11.6.3
Windows 10 Pro
The following example code fails with the errors 13843 and 14457.
Code:
USING Progress.Json.ObjectModel.JsonObject.
DEFINE VARIABLE oJson AS class JsonObject NO-UNDO.
oJson = NEW JsonObject().
oJson:Add("blarNumber", 12345).
oJson:Add("blarString", "asdasda").
oJson:Add("blarUnkown", ?).
Error Message:
In the documentation it says passing a value of unknown will result in a JSON null value.
My workaround is to wrap the unknown value with an integer function. My question, is this a bug?
If it is a bug, I guess it won't be fixed because it's been like this for too many revisions of OpenEdge.
Code:
USING Progress.Json.ObjectModel.JsonObject.
DEFINE VARIABLE oJson AS class JsonObject NO-UNDO.
oJson = NEW JsonObject().
oJson:Add("blarNumber", 12345).
oJson:Add("blarString", "asdasda").
oJson:Add("blarUnkown", INTEGER(?) ).