StAX / Jettison use case

Hi chdev,
The current search result format isn’t handled well by the StAX API (which uses Jettison in the Apache Axis2 implementation).
It seems to be because there is no single top-level JSON object. Instead the results start straight into the six top-level elements.
If this is one of your client use cases, it might be worth looking at wrapping the results in a single top-level object. e.g. something like this:

{
   "results" : {
      "page_number": 1,
      "items": [
        etc

Ian

That’s a really bizarre expectation for a JSON parser :wink: (well, okay it’s not the parser per se).

Our results are pretty standard and in line with many other search/list RESTfull JSON API’s. I’d be interested to know how Jettison etc deals with these API responses?

For example:

Interested to know!

Chris