I need to convert the XML to JSON-LD using the JAVA programming language. Hence, I am parsing the XML using the SAX PARSER and obtaining all the data, and storing it in an object.

Now, for converting this data to JSON-LD I already have the JSON-Schema based on which I need to create my JSON. I wanted to know if there is any Java library that makes it simple for creating this JSON-LD using the JSON Schema and the data I have. I tried searching on this but could not find any right examples or documentation that helps in achieving this. Hence, posting here.

So basically I am looking for a JAVA library or package which can take the input as my Data which I obtained from parsing the XML and my JSON Schema and provide the output as JSON-LD which adheres to the JSON Schema.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.