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:
    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
    Eric Lawrence avatar
    832 posts

    Posted 19 May 2014 Link to this post

    This question is already underway here:

    Eric Lawrence

    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