tag:blogger.com,1999:blog-9199434648296876494.post55394134519703854..comments2024-03-29T03:45:59.953-04:00Comments on cloudy: How to generate a Listed JSON from multiple Salesforce Objects(say account and contact) and send data in JSON format to mobile client without nesting Using REST APIMohithhttp://www.blogger.com/profile/14211795337008571017noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9199434648296876494.post-14707582442746561752013-09-04T06:24:09.299-04:002013-09-04T06:24:09.299-04:00Hi ,
I had an query with json response tags, in ...Hi , <br /><br />I had an query with json response tags, in the above example , though we have queried only for <br />lstacc=[Select Id,CreatedDate,LastModifiedDate,Isdeleted from Acccount ];<br /><br />we get extra tags in the output <br />{<br /> "attributes": {<br /> "type": "Account",<br /> "url": "/services/data/v25.0/sobjects/Account/001W0000006XDG9IAO"<br /> },<br /> "CreatedDate": "2012-08-09T08:29:43.000+0000",<br /> "LastModifiedDate": "2012-08-09T15:24:42.000+0000",<br /> "IsDeleted": true,<br /> "Id": "001W0000006XDG9IAO"<br /> }<br /><br />is there any way not to print , type and url attribute in response , and return only for the queried fields in output ?<br /><br /><br />Anonymoushttps://www.blogger.com/profile/14331085360995413216noreply@blogger.com