Add JSON example. Closes gh-6.