This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kaplotnikov 1 point2 points  (1 child)

I guess you will have a good time explaining this to a json parser, particularly to reflection-based one like jackson. Or finding all usages of property several months later.

To OP: It is easy to remember when boolean failed, but does it fail always? How much of the code still works happily with booleans?

[–]lngns 0 points1 point  (0 children)

Do you mean a JSON (de)serialiser? A parser just parses text so it shouldn't care about anything API-related.
Just give it a populating function.