Quickfix: convert location field auth data to json if it's a hash