Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create a basic REST service

I would like to create a basic rest service. At first I would like this service to validate the JSON that comes in. How do I do that?

First component would probably be tRestResponse what about after that?

Labels (4)
3 Replies
Anonymous
Not applicable
Author

Use a tJava or tJavaRow and load a Java JSON Schema Validator library. Something like that https://github.com/java-json-tools/json-schema-validator/blob/master/src/main/java/com/github/fge/js...

 

Another way with limitations:  Talend Document object type can translate the JSON to XML if it is in a supported format in XML, and then use tXSDValidator.  However, if your JSON is very complex, with arrays, nodes with digits only, etc, you will need to use a library like above.

Anonymous
Not applicable
Author

I thought I can use standard components. I don't really want to Validate JSON against a schema but just to validate that it is a valid JSON.

Anonymous
Not applicable
Author

I need to validate json payload against json schema, can you please guide me how to do it with tjava and how to add the library. Thanks.