Results 1 to 3 of 3

Thread: JSON.decode error when JSON includes Line Separator character.

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-20930 in 6.6.0.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    43

    Default JSON.decode error when JSON includes Line Separator character.

    A valid unicode character is causing Ext.JSON.decode to fail. On Chrome Firefox and IE11 JSON.parse all handle it correctly.

    I have verified this on all versions of ExtJS available on Fiddle

    See the below:

    https://fiddle.sencha.com/#fiddle/18s4

    Line Separator is valid in JSON strings, just not in strings in JavaScript source files.

  2. #2

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    43

    Default

    I've found a work around for our purposes was to set Ext.USE_NATIVE_JSON to true since that also stops this issue.https://fiddle.sencha.com/#fiddle/18tp

Similar Threads

  1. Replies: 1
    Last Post: 23 Dec 2015, 8:11 AM
  2. Ext.decode where JSON includes functions
    By jsalisbury in forum Ext: Q&A
    Replies: 1
    Last Post: 21 Mar 2013, 5:59 AM
  3. Replies: 2
    Last Post: 9 Nov 2012, 1:18 PM
  4. Error with decode and JSON
    By mcbaker in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 21 Dec 2010, 6:36 AM
  5. JSON decode without JS Error on faulty JSON possible?
    By Wolfgang in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Jul 2007, 11:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •