gchq/CyberChef

Bug report: 'JSON beautify' operation losing numeric precision

Open

#415 opened on Nov 20, 2018

 (1 comment) (0 reactions) (0 assignees)JavaScript (3,944 forks)batch import
bughelp wanted

Repository metrics

Stars
 (34,843 stars)
PR merge metrics
 (PR metrics pending)

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