summaryrefslogtreecommitdiffstats
path: root/src/json.c
AgeCommit message (Collapse)Author
2019-01-24patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
2019-01-20patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
2019-01-17patch 8.1.0766: various problems when using Vim on VMSv8.1.0766Bram Moolenaar
Problem: Various problems when using Vim on VMS. Solution: Various fixes. Define long_long_T. (Zoltan Arpadffy)
2019-01-13patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar
Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
2019-01-12patch 8.1.0735: cannot handle binary datav8.1.0735Bram Moolenaar
Problem: Cannot handle binary data. Solution: Add the Blob type. (Yasuhiro Matsumoto, closes #3638)
2019-01-12patch 8.1.0731: JS encoding does not handle negative infinityv8.1.0731Bram Moolenaar
Problem: JS encoding does not handle negative infinity. Solution: Add support for negative infinity for JS encoding. (Dominique Pelle, closes #3792)
2018-12-21patch 8.1.0615: get_tv function names are not consistentv8.1.0615Bram Moolenaar
Problem: Get_tv function names are not consistent. Solution: Rename to tv_get.
2018-09-30patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar
Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
2018-04-08patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()v8.0.1677Bram Moolenaar
Problem: No compiler warning for wrong format in vim_snprintf(). Solution: Add printf attribute for gcc. Fix reported problems.
2018-03-13patch 8.0.1602: crash in parsing JSONv8.0.1602Bram Moolenaar
Problem: Crash in parsing JSON. Solution: Fail when using array or dict as dict key. (Damien)
2017-12-15patch 8.0.1391: encoding empty string to JSON sometimes gives "null"v8.0.1391Bram Moolenaar
Problem: Encoding empty string to JSON sometimes gives "null". Solution: Handle NULL string as empty string. (closes #2446)
2017-02-05patch 8.0.0309: cannot use an empty key in jsonv8.0.0309Bram Moolenaar
Problem: Cannot use an empty key in json. Solution: Allow for using an empty key.
2017-01-22patch 8.0.0216: decoding js style json may failv8.0.0216Bram Moolenaar
Problem: When decoding JSON with a JS style object the JSON test may use a NULL pointer. (Coverity) Solution: Check for a NULL pointer.
2017-01-14patch 8.0.0180: error E937 is used twicev8.0.0180Bram Moolenaar
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)
2017-01-11patch 8.0.0171: JS style JSON does not support single quotesv8.0.0171Bram Moolenaar
Problem: JS style JSON does not support single quotes. Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371)
2017-01-10patch 8.0.0170: crash in channel testv8.0.0170Bram Moolenaar
Problem: Channel test fails for using freed memory. Solution: Fix memory use in json_decode().
2017-01-10patch 8.0.0169: json_decode() may run out of stack spacev8.0.0169Bram Moolenaar
Problem: For complicated string json_decode() may run out of stack space. Solution: Change the recursive solution into an iterative solution.
2017-01-10patch 8.0.0166: JSON with a duplicate key gives an internal errorv8.0.0166Bram Moolenaar
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.
2016-11-10patch 8.0.0074v8.0.0074Bram Moolenaar
Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
2016-11-06patch 8.0.0067v8.0.0067Bram Moolenaar
Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
2016-11-04patch 8.0.0059v8.0.0059Bram Moolenaar
Problem: Vim does not build on VMS systems. Solution: Various changes for VMS. (Zoltan Arpadffy)
2016-10-21patch 8.0.0046v8.0.0046Bram Moolenaar
Problem: Using NUL instead of NULL. Solution: Change to NULL. (Dominique Pelle)
2016-08-29patch 7.4.2293v7.4.2293Bram Moolenaar
Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-26patch 7.4.2258v7.4.2258Bram Moolenaar
Problem: Two JSON messages are sent without a separator. Solution: Separate messages with a NL. (closes #1001)
2016-07-01patch 7.4.1976v7.4.1976Bram Moolenaar
Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
2016-04-23patch 7.4.1780v7.4.1780Bram Moolenaar
Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle)
2016-03-28patch 7.4.1666v7.4.1666Bram Moolenaar
Problem: When reading JSON from a channel all readahead is used. Solution: Use the fill function to reduce overhead.
2016-03-20patch 7.4.1617v7.4.1617Bram Moolenaar
Problem: When a JSON message is split it isn't decoded. Solution: Wait a short time for the rest of the message to arrive.
2016-03-14patch 7.4.1559v7.4.1559Bram Moolenaar
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
2016-03-05patch 7.4.1498v7.4.1498Bram Moolenaar
Problem: Error for locked item when using json_decode(). (Shougo) Solution: Initialize v_lock.
2016-02-29patch 7.4.1467v7.4.1467Bram Moolenaar
Problem: Can't build without the float feature. Solution: Add #ifdefs. (Nick Owens, closes #667)
2016-02-28patch 7.4.1446v7.4.1446Bram Moolenaar
Problem: Crash when using json_decode(). Solution: Terminate string with a NUL byte.
2016-02-28patch 7.4.1445v7.4.1445Bram Moolenaar
Problem: Memory corruption when 'encoding' is not utf-8. Solution: Convert decoded string later.
2016-02-27patch 7.4.1444v7.4.1444Bram Moolenaar
Problem: Can't build with JSON but without multi-byte. Solution: Fix pointer name.
2016-02-27patch 7.4.1440v7.4.1440Bram Moolenaar
Problem: Can't build on Windows. Solution: Change #ifdefs. Only define isnan when used.
2016-02-27patch 7.4.1439v7.4.1439Bram Moolenaar
Problem: Using uninitialzed variable. Solution: Initialize vc_type.
2016-02-27patch 7.4.1437v7.4.1437Bram Moolenaar
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)
2016-02-27patch 7.4.1434v7.4.1434Bram Moolenaar
Problem: JSON encoding doesn't hanel surrogate pair. Solution: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto)
2016-02-27patch 7.4.1430v7.4.1430Bram Moolenaar
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.
2016-02-23patch 7.4.1408v7.4.1408Bram Moolenaar
Problem: MS-Windows doesn't have isnan() and isinf(). Solution: Use _isnan() and _isinf().
2016-02-23patch 7.4.1407v7.4.1407Bram Moolenaar
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().
2016-02-20patch 7.4.1367v7.4.1367Bram Moolenaar
Problem: Compiler warning for unreachable code. Solution: Remove a "break". (Danek Duvall)
2016-02-13patch 7.4.1315v7.4.1315Bram Moolenaar
Problem: Using a channel handle does not allow for freeing it when unused. Solution: Add the Channel variable type.
2016-02-07patch 7.4.1279v7.4.1279Bram Moolenaar
Problem: jsonencode() is not producing strict JSON. Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode() strict.
2016-02-07patch 7.4.1278v7.4.1278Bram Moolenaar
Problem: When jsonencode() fails it still returns something. Solution: Return an empty string on failure.
2016-02-06patch 7.4.1269v7.4.1269Bram Moolenaar
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
2016-02-04patch 7.4.1261v7.4.1261Bram Moolenaar
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.
2016-02-02patch 7.4.1243v7.4.1243Bram Moolenaar
Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem)
2016-02-02patch 7.4.1238v7.4.1238Bram Moolenaar
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.
2016-02-01patch 7.4.1231v7.4.1231Bram Moolenaar
Problem: JSON messages are not parsed properly. Solution: Queue received messages.