added json serialization
Merge pull request #3 from kanbak/newBranch

added json serialization