Redmine#3279: add storejson() function
Merge pull request #1049 from tzz/feature/3279-storejson

Redmine#3279: add storejson() function