Inconsistent PrettyPrinting
See original GitHub issuescala> val rawJson = """{"hello": "world", "age": 42, "nested": { "deeper": { "treasure": true }}}"""
rawJson: String = {"hello": "world", "age": 42, "nested": { "deeper": { "treasure": true }}}
scala> rawJson.asJson.noSpaces
res24: String = "{\"hello\": \"world\", \"age\": 42, \"nested\": { \"deeper\": { \"treasure\": true }}}"
scala> decode[HelloWorld](rawJson).map(_.asJson.noSpaces).getOrElse("")
res25: String = {"hello":"world","age":42,"nested":{"deeper":{"treasure":true}}}
res24 is not parsable because of ""
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
python - gdb pretty printing inconsistency - Stack Overflow
I'm trying to figure out an inconsistency in the gdb pretty printing. Consider the following short program: #include <map> int main(int argc, char*...
Read more >Prettyprinting - Association for Computing Machinery
Key Words and Phrases: prettyprinting, formating, paragraphing, text editing, ... If the blanks in the block are inconsistent, then a new line will...
Read more >Bug #1733222 “print-level in pretty-printer inconsistent with no ...
print-level in pretty-printer inconsistent with non-pretty. Bug #1733222 reported by Douglas Katzman on 2017-11-19. 6. This bug affects 1 person ...
Read more >Inconsistency between operator priority and pretty-printing (#20)
Inconsistency between operator priority and pretty-printing. The Heptagon equation. o = 0 fby (2 * o). is pretty-printed as. o = 0 fby...
Read more >Inconsistent print color output - looking for advice
Looks pretty close... not very scientific but ... a start for now. (I don't have space, money for high end monitor and calibration...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To be more precise. I can “parse”
res24
, but I still can’t decode it to acase class
. And I actually can’t work with it:Compare to
res25
:I’m pretty sure it’s a bug!
Ok, now I understand, sorry for trying to force it as a bug 😃.
As I understand, you’ve meant not getting a Json String back - you mean I’ll get a
io.circe.Json.JString
back. I just didn’t read it careful enough.Thanks, and sorry again 😃