Using JSONPath to Query JSON in OSB

Extracting values from JSON is much easier with JSONPath. Download the full example. Recently we have used Javascript to query and update JSON payloads. There is a way to extract necessary values from JSON in a much simpler way. Meet JSONPath. See other posts about OSB & JSON: Using Javascript to Inspect & Modify JSON Payload JSON Proxies: Inspecting & Modifying the Payload (using conversion to XML) Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics

Continue reading

Using Javascript to Inspect & Modify JSON Payload

How to read and update JSON in OSB with JRE’s Javascript Engine. Download the full example. In the previous article we updated a JSON payload by converting it to XML (and back). However, the code that does the transformation is not very readable. Can we, inside of OSB, use a scripting language which is more native to JSON? Say, … Javascript? See other posts about OSB & JSON: JSON Proxies: Inspecting & Modifying the Payload (using conversion to XML) Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics

Continue reading