Customized JSON parsers

Hi all,

We'd like to enhance the JSON parser for Passolo: It seems to work well for JSON with the following very basic structure:

{

  "key1": "message 1",

  "key2": "message 2"

}

However, we would like to use something like this:

{ messages:[

  {

    "id": "key1",

    "text": "message 1",

    "other": "some other fields"

  },{

    "id": "key2",

    "text": "message 2",

    "other": "some other fields"

  }]

}

We are interested in the content of "id" and "text" which represents our key-value pair. The "other" fields should be ignored. Using the default parser, the example above will result in 6 Strings (id=key1, text=message 1, other=some other fields, ...) instead of two (key1=message 1, key2=message 2).

The JSON "Setup..." dialog in Passolo does not allow to define a template as for example the XML parser allows to. Is there a way to define a customized JSON parser?

Thanks and best regards

Dominic

Parents Reply Children