[TIMOB-346] TiAPI: Response JSON
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-08-21T22:10:04.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | api, scrub-valid |
Reporter | Kevin Whinnery |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:27:37.000+0000 |
Updated | 2017-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...
May I add in a "Please Yes" for this, feature. Thanks.
Major wishlist item and also completely unnecessary (you can just serialize responseText).
rollback wrong update
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.
Closing ticket as invalid.