json - How do I remove a document from an api payload? -
how remove document in underscore js?
i have collection response in api
i20150707-21:43:38.217(8)?{ next: 'https://cloudalytics-api-phx.prod.jivehosted.com:443/analytics/v2/export/activity/lastday?startindex=100&count=100', i20150707-21:43:38.217(8)? itemsperpage: 100, i20150707-21:43:38.217(8)? totalcount: 177687, i20150707-21:43:38.217(8)? currentpage: 1, i20150707-21:43:38.217(8)? totalpages: 1777 } i20150707-21:43:38.315(8)? [ { name: 'activity_people_search', i20150707-21:43:38.315(8)? timestamp: 1436276604627, i20150707-21:43:38.315(8)? context: { web: [object] }, i20150707-21:43:38.315(8)? payload: { keywords_param: 'old emails*' }, i20150707-21:43:38.316(8)? actorid: 1174358, i20150707-21:43:38.316(8)? actortype: 3, i20150707-21:43:38.316(8)? activitytype: 'people', i20150707-21:43:38.316(8)? actionobjectid: -1, i20150707-21:43:38.316(8)? actionobjecttype: 109, i20150707-21:43:38.317(8)? activity: i20150707-21:43:38.317(8)? { actor: [object], i20150707-21:43:38.317(8)? action: 'people', i20150707-21:43:38.317(8)? actionobject: [object], i20150707-21:43:38.317(8)? activitytime: 1436276604627 } },...etc and want remove 1st document {next,...}
i manage remove 1st document without using underscore.js
in api call there response have different json format json api . in case, dont have include resources dont need.
feel free edit.
Comments
Post a Comment