Added code to interact with JSON.

* It really just deals with dictionaries...
Added some doc strings.