Added a root object to JSON response to match XML

RCF @doomspork.

I know we talked about this briefly did you want to do this to make the XML and JSON responses similar.
I do think it is a bit odd returning the error wrapped in a root of `barcode` maybe we can change that to be wrapped in `error` ?