bruno
bruno copied to clipboard
Prettify Changes JSON Data Types From Float To Int
Hi
I'm running the latest Bruno release and I've come across an issue with running prettify converting float values to ints.
Before running prettify:
After running prettify:
This completely changes the datatype if there are trailing .0's which is raising validation errors by my service.
I've not tested any other datatype conversions so I'm unsure the extent of this issue.
For reference Postman's Beautify behaves how I would expect a formatter too:
Thanks
Probably because the "prettifying" is done using JSON.stringify/JSON.parse, we need to start using the lossless-json package everywhere.
is there a ticket for the lossless-json work? i agree this is an important change
I've implemented the lossless-json changes in the PR #2006
Thanks for the PR @DJSaunders1997 ! It has been merged.
This will go out in the 1.13.0 release. Please subscribe to Discord announcement channel to stay notified on the releases.