* cleaning up the error format in this function to match
our standard format.
* Catching an error that can occur if the json is improperly decoded.
* fixing Django to the LTS support version as 1.9.1 breaks our automatic
api documentation.
Change-Id: Ib3e452427989b376c55710ce33f73fabdc84260d