Merge pull request #1 from metagraf/to_json

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

* 'master' of https://github.com/metagraf/sparkle: