[progress Communities] [progress Openedge Abl] Json Objects Need More Help With Numbers And...

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
JSON does not have any numberic types other than "number". Nor does it have dates (values must be stringified). The GetType( ) method returns a NUMBER value but that could refer to INT, INT64 or DECIMAL values. The ABL should provide more guidance on what the values could be. This may be via IsInteger()/IsINt64()/IsDecimal() methods or a GetNumericType() method that could return a flagged Enum. Some values - like 12 - could be INT, INT64 and DEC. This functionality would help devs write less try-check code and make working with JSON easier

Continue reading...
 
Status
Not open for further replies.
Back
Top