This is a migrated thread and some comments may be shown as answers.

Insert an element at the end of JSON-object

1 Answer 321 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
AMS
Top achievements
Rank 1
AMS asked on 17 May 2014, 07:34 PM
There is a code:
oSession.utilDecodeResponse();
var sBody = System.Text.Encoding.UTF8.GetString(oSession.responseBodyBytes);
             
var oJSON  = Fiddler.WebFormats.JSON.JsonDecode(sBody);
var o_JSON = Fiddler.WebFormats.JSON.JsonDecode(oJSON.JSONObject[0]['response']);
var oItems = o_JSON.JSONObject['data']['User']['Equip']['Items'];
How to add to the end of оItems element { 'ID' :3, 'Count' :1 }? Thx.

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 19 May 2014, 03:42 PM
This question is already underway here: https://groups.google.com/d/msg/httpfiddler/PLVyBV__-Ho/0tl6g9LyfGYJ

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
AMS
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or