Here\'s my dilemma. I\'m using a RESTful ASP.NET service, trying to get a function to return a JSON string in this format:
{\"Test1Key\":\"Test1Value\",\"Te
In case anyone has that problem on the client side: conversion from that weird {Key: "x", Value:"y"} Array to a { x: "y" } object can be done in a single line of JS:
var o = i.reduce(function (p, c, a, i) { p[c.Key] = c.Value; return p }, {});
with i being the array returned from the service, and o being what you actually want.
best regards