debugging json responses.
fixing json responses.