Fixing json responses for various apis