gchq/CyberChef

Bug report: 'JSON beautify' operation losing numeric precision

Open

#415 opened on Nov 20, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (34,843 stars) (3,944 forks)batch import
bughelp wanted

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:

{ "a": 1234567890123456789 }

Erroneous output:

{
	"a": 1234567890123456800
}

Contributor guide