Skip to content

1.3.6 - Support for scientific notation

Compare
Choose a tag to compare
@rakuyoMo rakuyoMo released this 07 Apr 05:45
· 195 commits to master since this release

Add

Now supports using scientific notation to represent numbers in json. The supported format is {E/e}[+/-].

For example, the following numbers are supported:

{
    "exponential_value": [
        1024e+23,
        -25e+23,
        -25e-23,
        2.54e23,
        3.1415926E+23,
        3.1415926E-23
    ]
}

PLEASE NOTE:

The rendering time increases when the json contains numbers represented using scientific notation.

There is no solution for this at the moment.

I have understood that JSONPreview has some degree of performance bottleneck in parsing json and rendering.

I will try to fix this in version 2.0.0, but I can't be sure or even predict when it will be released.

Sorry about that.