0

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.

1 Answer 1

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.