gchq / gchq/CyberChef

Bug report: 'JSON beautify' operation losing numeric precision

Open
#415 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

### Summary

When running the 'JSON beautify' operation, numeric precision is lost for large numbers.

### Example

https://gchq.github.io/CyberChef/#recipe=JSON_Beautify('%5C%5Ct')&input=eyAiYSI6IDEyMzQ1Njc4OTAxMjM0NTY3ODkgfQ

Input:
```json
{ "a": 1234567890123456789 }
```

Erroneous output:
``` json
{
"a": 1234567890123456800
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.