api_methods: JSON parsing should be done with the quirks_mode option set to true

Otherwise response like: "true" will raise an exception
see: https://github.com/flori/json/issues/16