summaryrefslogtreecommitdiff
path: root/src/json.c
Commit message (Collapse)AuthorAgeFilesLines
...
* patch 7.4.1437v7.4.1437Bram Moolenaar2016-02-271-18/+0
| | | | | | Problem: Old system doesn't have isinf() and NAN. (Ben Fritz) Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama)
* patch 7.4.1434v7.4.1434Bram Moolenaar2016-02-271-5/+67
| | | | | 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-5/+5
| | | | | | | 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.1408v7.4.1408Bram Moolenaar2016-02-231-5/+16
| | | | | Problem: MS-Windows doesn't have isnan() and isinf(). Solution: Use _isnan() and _isinf().
* patch 7.4.1407v7.4.1407Bram Moolenaar2016-02-231-3/+48
| | | | | | | 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.1367v7.4.1367Bram Moolenaar2016-02-201-1/+1
| | | | | Problem: Compiler warning for unreachable code. Solution: Remove a "break". (Danek Duvall)
* patch 7.4.1315v7.4.1315Bram Moolenaar2016-02-131-0/+1
| | | | | Problem: Using a channel handle does not allow for freeing it when unused. Solution: Add the Channel variable type.
* patch 7.4.1279v7.4.1279Bram Moolenaar2016-02-071-44/+94
| | | | | | 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-5/+16
| | | | | Problem: When jsonencode() fails it still returns something. Solution: Return an empty string on failure.
* patch 7.4.1269v7.4.1269Bram Moolenaar2016-02-061-7/+11
| | | | | Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
* patch 7.4.1261v7.4.1261Bram Moolenaar2016-02-041-4/+1
| | | | | | | Problem: Pending channel messages are garbage collected. Leaking memory in ch_sendexpr(). Leaking memory for a decoded JSON string. Solution: Mark the message list as used. Free the encoded JSON. Don't save the JSON string.
* patch 7.4.1243v7.4.1243Bram Moolenaar2016-02-021-1/+1
| | | | | Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem)
* patch 7.4.1238v7.4.1238Bram Moolenaar2016-02-021-123/+300
| | | | | | Problem: Can't handle two messages right after each other. Solution: Find the end of the JSON. Read more when incomplete. Add a C test for the JSON decoding.
* patch 7.4.1231v7.4.1231Bram Moolenaar2016-02-011-2/+4
| | | | | Problem: JSON messages are not parsed properly. Solution: Queue received messages.
* patch 7.4.1229v7.4.1229Bram Moolenaar2016-01-311-0/+27
| | | | | Problem: "eval" and "expr" channel commands don't work yet. Solution: Implement them. Update the error numbers. Also add "redraw".
* patch 7.4.1192v7.4.1192Bram Moolenaar2016-01-281-0/+5
| | | | | | Problem: Can't build with FEAT_EVAL but without FEAT_MBYTE. (John Marriott) Solution: Add #ifdef for FEAT_MBYTE.
* patch 7.4.1188v7.4.1188Bram Moolenaar2016-01-281-1/+1
| | | | | Problem: Using older JSON standard. Solution: Update the link. Adjust the text a bit.
* patch 7.4.1166v7.4.1166Bram Moolenaar2016-01-241-7/+19
| | | | | | 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-3/+7
| | | | | | 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.1160v7.4.1160Bram Moolenaar2016-01-231-0/+1
| | | | | Problem: No error for jsondecode('"'). Solution: Give an error message for missing double quote.
* patch 7.4.1156v7.4.1156Bram Moolenaar2016-01-231-2/+6
| | | | | Problem: Coverity warns for NULL pointer and ignoring return value. Solution: Check for NULL pointer. When dict_add() returns FAIL free the item.
* patch 7.4.1154v7.4.1154Bram Moolenaar2016-01-231-0/+509
Problem: No support for JSON. Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true, v:null and v:none.