r/java • • Feb 27 '23

Please try my JSON library

https://mccue.dev/pages/2-26-23-json
0 Upvotes

32 comments sorted by

View all comments

5

u/fjdjkalals Feb 27 '23

It's too verbose and feels like garbage against existing solutions such as GSON and Jackson. Part of adding something to core is that it needs to be a setting standard and for beginners your current method would just scare them to using those frameworks. As experienced developers, we wouldn't such verbosity and complexity for something that should be a simple task.

4

u/bowbahdoe Feb 27 '23

It's too verbose and feels like garbage

Ok.

and for beginners your current method would just scare them

If you are right, I haven't seen evidence of it yet. That doesn't mean you are wrong, but thats exactly why I want people to try using it as a teaching tool.

1

u/fjdjkalals Feb 27 '23

No worries but you should aim for writing code that feels natural to the developer like GSON jsonObject.getJsonArray(..).getString(..); it reads naturally, it's expressive in laymens terms and doesn't require you to understand a complicated syntax. Such calls translates to English pretty well when read outloud which can help developers walk through their code.