Skip to content

Commit

Permalink
Use raw true/false in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeantessier committed Oct 21, 2024
1 parent 695bc07 commit 93d510a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/Journal_2024-10-20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Found a "bug" in =com.jeantessier.dependency.JSONPrinter=. It rendered boolean
values for confirmed nodes as the strings ="true"= and ="false"=, instead of
the raw boolean values =true= and =false= that are allowed in JSON. I had to
fix quite a few test data templates. The templates didn't end with a newline
character because I compared them to the printer's output, which doesn't have
one either. But IntelliJ IDEA decided to add a newline on each file that I
touched, out of the goodness of its heart. I would have been tedious to open
each file in another editor, just to remove a newline. So, I adjusted the test
to add a newline to the printer's output instead.

0 comments on commit 93d510a

Please sign in to comment.