Retrieve JSON ordered results array with no names from Asp.net MVC web api -


i'm taking first stab @ asp.net web api , mvc retrieve json results. when query controller, receive following json set:

[{"date":"2013-05-01t10:00:00","value":1445.95},{"date":"2013-05-01t10:05:00","value":1427.42}] 

however, these results include name:value pairs. prefer receive ordered results array (with no names):

[{"2013-05-01t10:00:00",1445.95},{"2013-05-01t10:05:00",1427.42}] 

i think read commonly handled after retrieving json object. in case though, i'm trying match output format of site's existing rest interface. suggestions on how achieve output?

i prefer receive ordered results array (with no names):

[{"2013-05-01t10:00:00",1445.95},{"2013-05-01t10:05:00",1427.42}]

sorry desired output invalid json. check on http://jsonlint.com , see yourself. afraid if want produce such string (because not json) have build manually yourself. json serializer in web api produces json.

in case though, i'm trying match output format of site's existing rest interface.

i extremely surprised if site using string output format. if suggest contacting authors of service alerting them not json.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -