Search code examples
jsonintershop

What is the recommended way to parse JSON on Intershop?


In my pipelet I make a REST call to a 3rd party system and get back a String containing the JSON response. From the JSON I want to parse 1 attribute. What is the best way to parse JSON on Intershop Commerce Management 7.8?


Solution

  • Intershop includes the Jackson library. You can use it without even need to map the whole response to a well-defined object, but you can parse it "on the fly". See "Jackson JSON – Read Specific JSON Key" paragraph here: http://www.journaldev.com/2324/jackson-json-java-parser-api-example-tutorial