add JSON version
Merge pull request #1 from Boldewyn/master

add JSON version