On 23 January 2016, Bram Moolenaar <[email protected]> wrote:
>
> Patch 7.4.1154
> Problem: No support for JSON.
> Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true,
> v:null and v:none.
[...]
Very nice, thank you!
There are still a few rough edges with it though:
:echo jsondecode('true')
true
:echo string(jsondecode('true'))
true
:echo type(jsondecode('true'))
E685: Internal error: f_type()
0
:echo jsondecode('"')
none
:echo jsondecode('<...most other invalid constructs...>')
none
:echo jsondecode('{-}')
E474: Invalid argument
none
:echo jsondecode('""')
Vim: Caught deadly signal SEGV
Segmentation fault
/lcd
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.