Is it possible to format how an object is returned as JSON from a PageMethod? ie. removing the first ‘d’ element from the data, without writing the JSON from scratch.
From:
{ 'd': { 'name': 'bob', 'email': 'bob@example.com' } }
To
{ 'name': 'bob', email: 'bob@example.com' }
No. Microsoft’s JSON serializer adds the d for some reason on the server side, and the client-side AJAX code that deserializes the JSON string expects it to be there.