Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-346] TiAPI: Response JSON

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2012-08-21T22:10:04.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsTiAPI
Labelsapi, scrub-valid
ReporterKevin Whinnery
AssigneeNeeraj Gupta
Created2011-04-15T02:27:37.000+0000
Updated2017-03-09T23:36:20.000+0000

Description

An interesting idea from the community - maybe include a JSON-serialized xhr.responseJSON field on XHR objects that accept applcaition/json. This would be a nice convenience for JSON-spitting web services. Credit to the following community member:

http://support.appcelerator.net/discussions/titanium-mobile-discussion/202-xhr-responsejson"> http://support.appcelerator.net/discussions/titanium-mobile-discuss...

Comments

  1. bamboopoint 2011-04-15

    May I add in a "Please Yes" for this, feature. Thanks.

  2. Stephen Tramer 2011-04-15

    Major wishlist item and also completely unnecessary (you can just serialize responseText).

  3. Nikolai Derzhak 2011-04-15

    rollback wrong update
  4. Josh Roesslein 2012-07-26

    Not sure this is really needed. JSON.parse(xhr.responseText) isn't too complex and would be far more efficient (at least on Android/V8) rather than parsing this on the Java side.
  5. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source