change return type of Archive#toJson() from array to string
updates archiving sample app to use fixed toJson() method
adds test case for Archive#toJson(), fixes #73
Merge pull request #76 from aoberoi/issue-73

Fix Archive#toJson() method