added get json method
Merge pull request #2 from pasindud/master

added get json method