Make json_root configurable

Also guard against arr_rep not being set.  For instance if json is
returned that doesn't match the given root.
Spec for json_root
Merge pull request #13 from nathanstitt/set_json_root

Make json_root a method so it can be over-ridden if needed