Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7669] Provide Error Message if JSON.parse() fails

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2012-02-15T13:34:00.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0, Release 1.8.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterChristopher Marquardt
AssigneeNeeraj Gupta
Created2012-01-23T08:14:07.000+0000
Updated2017-03-29T16:22:51.000+0000

Description

Feature proposal

Would it be possible to attach a callback to JSON.parse for error handling? Currently only a try{}catch(){} is working.

Comments

  1. Stephen Tramer 2012-02-15

    JSON parsing is provided via JSCore and we cannot override its behavior reliably or safely. Modifying JSON.parse would also break the expected API.
  2. Lee Morris 2017-03-29

    Closing ticket as "Won't Fix".

JSON Source