add to_json
Merge pull request #1 from metagraf/to_json

add to_json