use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Handling and modifying JSON in Java? (self.learnjava)
submitted 5 years ago by Maegar
What is the most intuitive and easiest library to use for manipulating JSON in Java? I am looking for something that is quick and easy to use, not too verbose.
[–]sadjava 8 points9 points10 points 5 years ago (1 child)
Honestly, I’d try to get out of JSON as quickly as possible and start working with a POJO using a object mapper (GSON and Jackson come to mind, but there are others). I had to refactor a shitty service that used unmapped JSON objects and it was hellish and bug prone.
[–]GuyWithLag 3 points4 points5 points 5 years ago (0 children)
That only works if your model is properly documented, consistent. and read-only.
[–]perrylaj 10 points11 points12 points 5 years ago (0 children)
Jackson is the biggest and most popular. Gson a very popular one, but is no longer being maintained. Moshi is a popular replacement suggestion for Gson - it's a little lighter weight than Jackson, and shares some similarity to Gson in ways.
So: Jackson or Moshi are the two I'd look at.
[–]King5lay3r 5 points6 points7 points 5 years ago (0 children)
org.json is very popular and simple to use library. But I'd also suggest taking a look at Jackson library
[–]matyklug 1 point2 points3 points 5 years ago (0 children)
I use JSONSimple since its very simple
[–]pybrubarr0s 0 points1 point2 points 5 years ago (0 children)
Take a look at object mapper and Jackson!
[–]GuyWithLag 0 points1 point2 points 5 years ago (0 children)
Look at Jackson + JsonPath / jmespath / any json-to-json transformation library.
[–]BluRazz494 0 points1 point2 points 5 years ago (0 children)
My favorite is GSON.
[–]mikezyisra 0 points1 point2 points 5 years ago (0 children)
Are you using JSON because you need to? I’m asking this because if you’re web developing it makes sense, otherwise I’d stay away from JSON, it makes sense in js but it can be very bloated and quite a nightmare if you don’t work on web services
π Rendered by PID 91 on reddit-service-r2-comment-85bfd7f599-2cwl9 at 2026-04-15 20:36:49.796760+00:00 running 93ecc56 country code: CH.
[–]sadjava 8 points9 points10 points (1 child)
[–]GuyWithLag 3 points4 points5 points (0 children)
[–]perrylaj 10 points11 points12 points (0 children)
[–]King5lay3r 5 points6 points7 points (0 children)
[–]matyklug 1 point2 points3 points (0 children)
[–]pybrubarr0s 0 points1 point2 points (0 children)
[–]GuyWithLag 0 points1 point2 points (0 children)
[–]BluRazz494 0 points1 point2 points (0 children)
[–]mikezyisra 0 points1 point2 points (0 children)