if I do something like

  var result;

  var params = {};
  params[gadgets.io.RequestParams.CONTENT_TYPE] =
    gadgets.io.ContentType.JSON;

  gadgets.io.makeRequest(url, callback, params);

  function callback(response) {
    result = response.data;
  }

the result I get is a decoded json object that's frozen.
this causes problems for gadgets that expect to
be able to modify the object.

for instance, the gadget could be a UI to edit data.
I think it's reasonable to expect that you can fetch
json from a server, modify it, then post it back.

so, it's not at all clear to me where this freezing
is happening or how to fix it.  help?

workaround is to ignore the json-parsed response.data
and do something like
   result = JSON.parse(response.text);

(or deep-copy response.data, but that's more work.)

Reply via email to