AS-11727 - Ported this fix: https://github.com/dylanahsmith/rails/commit/c669a9c06c0035972cf4efbbecfd96a2a196d2c8 over to our fork to allow us to properly handle non-object JSON requests.