vim-jdaddy icon indicating copy to clipboard operation
vim-jdaddy copied to clipboard

Add functionality to convert a JSON to a string

Open p-fernandez opened this issue 7 years ago • 2 comments

I have installed this plugin today because I was looking for a fast way to pretty print JSON and this almost fulfilled my needs. But I also wanted a functionality to stringify the JSON, so taking as start some of your defined functionalities I developed the functionality I needed. I just leave this PR in case you find it useful to share for the plugin users. In case you like it, let me know any corrections you might want of it.

p-fernandez avatar Jun 03 '18 19:06 p-fernandez

Not sure what is meant here by "string". Looks like it combines everything onto one long line?

tpope avatar Jun 03 '18 19:06 tpope

Right. Just tried to replicate the functionality of JavaScript's JSON.stringify method without the extra features of replacer and space.

p-fernandez avatar Jun 03 '18 20:06 p-fernandez