tests/auto/qml/ecmascripttests/test262/test/built-ins/JSON/parse/15.12.1.1-0-9.js
raw| 1 | // Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es5id: 15.12.1.1-0-9 |
| 6 | description: Whitespace characters can appear before/after any JSONtoken |
| 7 | ---*/ |
| 8 | |
| 9 | JSON.parse('\t\r \n{\t\r \n' + |
| 10 | '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' + |
| 11 | '"prop2"\t\r \n:\t\r \n' + |
| 12 | '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]' + |
| 13 | '\t\r \n}\t\r \n'); // should JOSN parse without error |