Insert an element at the end of JSON-object

2 posts, 0 answers
  1. AMS
    AMS avatar
    1 posts
    Member since:
    May 2014

    Posted 17 May 2014 Link to this post

    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.
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 19 May 2014 Link to this post

    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.

     
Back to Top