summaryrefslogtreecommitdiff
path: root/src/testdir/test_json.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1602: crash in parsing JSONv8.0.1602Bram Moolenaar2018-03-131-0/+3
| | | | | Problem: Crash in parsing JSON. Solution: Fail when using array or dict as dict key. (Damien)
* patch 8.0.1391: encoding empty string to JSON sometimes gives "null"v8.0.1391Bram Moolenaar2017-12-151-0/+4
| | | | | Problem: Encoding empty string to JSON sometimes gives "null". Solution: Handle NULL string as empty string. (closes #2446)
* patch 8.0.0309: cannot use an empty key in jsonv8.0.0309Bram Moolenaar2017-02-051-0/+5
| | | | | Problem: Cannot use an empty key in json. Solution: Allow for using an empty key.
* patch 8.0.0180: error E937 is used twicev8.0.0180Bram Moolenaar2017-01-141-1/+1
| | | | | | Problem: Error E937 is used both for duplicate key in JSON and for trying to delete a buffer that is in use. Solution: Rename the JSON error to E938. (Norio Takagi, closes #1376)
* patch 8.0.0171: JS style JSON does not support single quotesv8.0.0171Bram Moolenaar2017-01-111-0/+5
| | | | | Problem: JS style JSON does not support single quotes. Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371)
* patch 8.0.0166: JSON with a duplicate key gives an internal errorv8.0.0166Bram Moolenaar2017-01-101-1/+2
| | | | | | Problem: JSON with a duplicate key gives an internal error. (Lcd) Solution: Give a normal error. Avoid an error when parsing JSON from a remote client fails.
* patch 7.4.2086v7.4.2086Bram Moolenaar2016-07-211-4/+1
| | | | | | Problem: Using the system default encoding makes tests unpredictable. Solution: Always use utf-8 or latin1 in the new style tests. Remove setting encoding and scriptencoding where it is not needed.
* patch 7.4.1455v7.4.1455Bram Moolenaar2016-02-281-4/+6
| | | | | Problem: JSON decoding test for surrogate pairs is in the wrong place. Solution: Move the test lines. (Ken Takata)
* patch 7.4.1450v7.4.1450Bram Moolenaar2016-02-281-1/+1
| | | | | | Problem: Json encoding still fails when encoding is not utf-8. Solution: Set 'encoding' before :scriptencoding. Run the json test separately to avoid affecting other tests.
* patch 7.4.1448v7.4.1448Bram Moolenaar2016-02-281-0/+7
| | | | | Problem: JSON tests fail if 'encoding' is not utf-8. Solution: Force encoding to utf-8.
* patch 7.4.1434v7.4.1434Bram Moolenaar2016-02-271-0/+10
| | | | | Problem: JSON encoding doesn't hanel surrogate pair. Solution: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto)
* patch 7.4.1430v7.4.1430Bram Moolenaar2016-02-271-8/+6
| | | | | | | Problem: When encoding JSON, turning NaN and Infinity into null without giving an error is not useful. Solution: Pass NaN and Infinity on. If the receiver can't handle them it will generate the error.
* patch 7.4.1407v7.4.1407Bram Moolenaar2016-02-231-2/+16
| | | | | | | Problem: json_encode() does not handle NaN and inf properly. (David Barnett) Solution: For JSON turn them into "null". For JS use "NaN" and "Infinity". Add isnan().
* patch 7.4.1304v7.4.1304Bram Moolenaar2016-02-111-144/+144
| | | | | | Problem: Function names are difficult to read. Solution: Rename jsonencode to json_encode, jsondecode to json_decode, jsencode to js_encode and jsdecode to js_decode.
* patch 7.4.1279v7.4.1279Bram Moolenaar2016-02-071-5/+121
| | | | | | Problem: jsonencode() is not producing strict JSON. Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode() strict.
* patch 7.4.1278v7.4.1278Bram Moolenaar2016-02-071-0/+3
| | | | | Problem: When jsonencode() fails it still returns something. Solution: Return an empty string on failure.
* patch 7.4.1269v7.4.1269Bram Moolenaar2016-02-061-0/+1
| | | | | Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
* patch 7.4.1166v7.4.1166Bram Moolenaar2016-01-241-0/+13
| | | | | | Problem: Can't encode a Funcref into JSON. jsonencode() doesn't handle the same list or dict twice properly. (Nikolay Pavlov) Solution: Give an error. Reset copyID when the list or dict is finished.
* patch 7.4.1164v7.4.1164Bram Moolenaar2016-01-241-2/+17
| | | | | | Problem: No tests for comparing special variables. Error in jsondecode() not reported. test_json does not work Japanse system. Solution: Set scriptencoding. (Ken Takata) Add a few more tests. Add error.
* patch 7.4.1157v7.4.1157Bram Moolenaar2016-01-231-0/+14
| | | | | Problem: type() does not work for v:true, v:none, etc. Solution: Add new type numbers.
* patch 7.4.1154v7.4.1154Bram Moolenaar2016-01-231-0/+91
Problem: No support for JSON. Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true, v:null and v:none.