Search Results

Search found 1 results on 1 pages for 'mjsilva'.

Page 1/1 | 1 

  • JSON.parse string with quotes

    - by mjsilva
    Hi, I've this: JSON.parse('{"130.00000001":{"p_cod":"130.00000001","value":"130.00000001 HDD Upgrade to 2x 250GB HDD 2.5\" SATA2 7200rpm"}}'); http://www.jsonlint.com/ says it's perfectly valid json. But on execution I have a JSON.parse error. But, if I change my code to: JSON.parse('{"130.00000001":{"p_cod":"130.00000001","value":"130.00000001 HDD Upgrade to 2x 250GB HDD 2.5\\" SATA2 7200rpm"}}'); (note the double backslash) It works, but now jsonlint gives me invalid json :/ Can someone help to understand this behavior?

    Read the article

1