Is there any internal library in Java for JSON processing? Basically this should not require adding jar reference explicitly. The reason is quite involved, but in short I can say that once I compile my code and build a jar around it, it is going to be executed by some third party tool which has trouble in adding external jar references.So, I am trying to figure out if I can rather make use of internal JSON library, though lightweight, if available.
Asked
Active
Viewed 93 times
1 Answers
1
There is no internal core JSON parsing capability in Java(JDK) and this makes good sense. The beauty of the java ecosystem is that libraries can be added easily if you want to expand functionality. If you want to deploy your .jar as a single executable file then compile all libraries into a single jar.
If you are using maven (and you should) see the following for how to 'compile to single executable jar' How can I create an executable JAR with dependencies using Maven?

David
- 5,203
- 2
- 16
- 17