commit | 595e64e259faefb330866852e1b9f6168544572a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Feb 07 19:19:53 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Feb 07 19:19:53 2016 +0100 |
tree | 87986bc108647e7c597195cea325ca130db69a40 | |
parent | 55fab439a6f3bba6dbe780ac034b84d5822a1a96 [diff] [blame] |
patch 7.4.1279 Problem: jsonencode() is not producing strict JSON. Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode() strict.
diff --git a/src/structs.h b/src/structs.h index 5a2d6fd..d0823bc 100644 --- a/src/structs.h +++ b/src/structs.h
@@ -2728,3 +2728,11 @@ void *js_cookie; /* can be used by js_fill */ }; typedef struct js_reader js_read_T; + +/* mode for a channel */ +typedef enum +{ + MODE_RAW = 0, + MODE_JSON, + MODE_JS +} ch_mode_T;