Lcd wrote:
> 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
The new variable type may need to be added in more places.
I'll fix it for type(). Let me know if you find more.
> :echo jsondecode('"')
> none
>
> :echo jsondecode('<...most other invalid constructs...>')
> none
There should be more places that produce an error.
> :echo jsondecode('{-}')
> E474: Invalid argument
> none
>
> :echo jsondecode('""')
> Vim: Caught deadly signal SEGV
> Segmentation fault
Just fixed that. Coverity managed to find this one.
--
How To Keep A Healthy Level Of Insanity:
10. Ask people what sex they are. Laugh hysterically after they answer.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.