#3962 (ok 4.1) Export to json escapes

3.5.1
fixed
export (13)
5
2013-12-12
2013-06-01
Erik Visser
No

Discussion

  • Erik Visser
    Erik Visser
    2013-06-01

    That did not go as planned. What I wanted to say was:

    when you export some data as JSON, the ' character is escaped to \' . This is not valid JSON and causes problems when parsing the exported data.

    Reproduce:

    create a table with a name column. Insert a record with name: "she didn't like json".

    export to JSON and you get:

    /**
    Export to JSON plugin for PHPMyAdmin
    @version 0.1
    */
    
    // Database 'test'
    // test.people
    
    [{"name": "she didn\'t like json"}]
    
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • assigned_to: Michal Čihař
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • summary: Export to json escapes --> (ok 4.1) Export to json escapes
    • status: open --> resolved
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    Fixed in 0ee0d8e

     
  • Marc Delisle
    Marc Delisle
    2013-12-12

    • Status: resolved --> fixed