Skip to Content
0

How to map REST json response?

Aug 08, 2017 at 10:33 AM

13

avatar image
Former Member

Hi!

I have a synchronous scenario SOAP -> REST. The request is OK and I'm getting a response. However, how do I map this in PI?

How do I see how PI converted the JSON to XML?! I need to know this to be able to build my data type accordingly.

The JSON response looks like this:

{
  "queueDuration": 2,
  "queryDuration": 150,
  "results": [
    {
      "resultSet": true,
      "data": [
        {
          "Article_Id": "100055547",
          "Concept_Cd": "HEM",
          "Promotion_Type_Cd": "ZC02",
          "Tactic_Type_Cd": "Z008",
          "Item_Qty_W_12": 12638,
          "Item_Qty_W_01": 4365,
          "Stores_Count_W_01": 8,
          "Promo_Item_Qty": 393,
          "Promo_Amt_Avg": 7.49
        },
        {
          "Article_Id": "101189578",
          "Concept_Cd": "HEM",
          "Promotion_Type_Cd": "ZC02",
          "Tactic_Type_Cd": "Z008",
          "Item_Qty_W_12": 0,
          "Item_Qty_W_01": 0,
          "Stores_Count_W_01": 0,
          "Promo_Item_Qty": 149,
          "Promo_Amt_Avg": 7.49
        }
      ],
      "rowCount": 2,
      "rowLimitExceeded": false
    }
  ]
}
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers