Skip to main content
Participant
Mar 19, 2023 8:48 PM UTC
Open for Voting

Problem reading large numbers in MGJSON file

Hi. I regularly work with data files in Adobe's MGJSON format. I have detected a problem where large numbers are constrained to a lower limit in certain situations. Take this minimal file example: https://www.dropbox.com/s/r2pocu067skwgx6/mgjson.mgjson?dl=0

(by the way, shouldn't this forum accept uploading MGJSON files?)

 

Any large data values are constrained to 32768 or less. You would think this is just the largest number AE can read, but if we tweak the data outline and define a slightly different legal range, the values are read correctly:
- Changing the minimum legal value to 0 fixes the issue
- Adding a decimal point and a zero to the min and max legal values also fixes it

I'm not sure why AE needs to know the min and max values. I was just using the max value that can be repredented in a JSON file, but from now on I thin I will use the min and max occuring values to try and avoid this bug.

3 replies

Participant
Mar 20, 2023 10:14 AM UTC

I mean, whether the contained data has decimals is expressed in a different part of the data outline: digitsInteger and digitsDecimal. The range values should not convey that, but the highest and lowest possible values, the way I see it. Otherwise, let us express the legal and occuring min and max as strings, just like the values themselves.

Translate
Participant
Mar 20, 2023 10:10 AM UTC

But these are still JSON files, where generally 100.0 and 100 are the same number

Translate
Mylenium
Legend
Mar 19, 2023 9:04 PM UTC

Int vs. float and how you map those 32000 int values. Not really something out of the ordinary.

 

Mylenium 

Translate