capacitor-community / http

Community plugin for native HTTP
MIT License
208 stars 136 forks source link

JSONException on device when getting a primitive value, e.g. number #263

Open WillooWisp opened 2 years ago

WillooWisp commented 2 years ago

Describe the bug JSONException on device when getting a plain number, e.g. number, in response body.

To Reproduce Make a get request to an API returning a plain number, which is valid json by itself, and works on desktop web browser, Chrome, but not on Android device.

Expected behavior Response data should be a number and not throw JSONException.

Desktop (please complete the following information):

Smartphone (please complete the following information):