sponsor Vim development Vim logo Vim Book Ad

jsoncodecs.vim : Dumps lines from vim to a valid JSON string

 script karma  Rating 9/3, Downloaded by 1719  Comments, bugs, improvements  Vim wiki

created by
yf liu
 
script type
utility
 
description
Use g:loaded_jsoncodecs to check whether jsoncodecs is loaded

Sample code
    if exists(\"g:loaded_jsoncodecs\")
        // do what you like
    endif



It provide the following functions

1. b:json_dump_string({lines})

    This functions take a list contains lines as input, output is a valid JSON string

2.  b:json_dumplines

     This is a utility function print out the result from json_dump_string

     :1,$call b:json_dumplines()
 
install details
put to $VIM/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
jsoncodecs.zip 1.2 2012-05-27 7.0 yf liu switch to use linux line endings
jsoncodecs.zip 1.1 2012-05-15 7.0 yf liu code optimazation
jsoncodecs.zip 1.0 2012-05-10 7.0 yf liu Initial upload
ip used for rating: 3.136.26.20

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github