add json
Merge branch 'master' of https://github.com/metagraf/sparkle into to_json

* 'master' of https://github.com/metagraf/sparkle:
Merge pull request #2 from metagraf/to_json

To json