Project

General

Profile

Bug #5192

OO Quirk - Json Number with exponent

Added by Marian Edu about 3 years ago. Updated about 3 years ago.

Status:
Hold
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version:

Related issues

Related to Base Language - Bug #5011: unimplemented OO 4GL quirks and bugs New

History

#1 Updated by Marian Edu about 3 years ago

Although numbers with exponents are supported to some extent in 4GL implementation those are not really parsed, one can add a number using exponential format (there is a separate method for that) but then that can't be read from a JSON construct (object/array). The type is reported as number but you can't read it with any of the getDecimal/getInteger/getInt64 methods and it is stored exactly as set in string format.

This will hopefully get fixed at some point so maybe we can implement it right in FWD and let all those numeric get methods parse the actual number instead of throwing error #16061 (Can not transform JSON number value to ABL decimal value, JSON value has an exponent.). Right now I'm using Double.parse for this, let me know if you want the current 4GL limited implementation instead but since this isn't actually working now nobody use this although some would like to :)

https://community-archive.progress.com/forums/00019/36132.html

#2 Updated by Greg Shah about 3 years ago

we can implement it right in FWD and let all those numeric get methods parse the actual number instead of throwing error #16061

Agreed, please implement it the "right way".

#3 Updated by Greg Shah about 3 years ago

  • Parent task deleted (#4384)
  • Start date deleted (03/11/2021)
  • Status changed from New to Hold

#4 Updated by Greg Shah about 3 years ago

  • Related to Bug #5011: unimplemented OO 4GL quirks and bugs added

Also available in: Atom PDF