gchq/CyberChef

Bug report: 'JSON beautify' operation losing numeric precision

Open

#415 aperta il 20 nov 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (3944 fork)batch import
bughelp wanted

Metriche repository

Star
 (34.843 star)
Metriche merge PR
 (Merge medio 57g 13h) (62 PR mergiate in 30 g)

Descrizione

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
}

Guida contributor