Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Bug: Request integer results in JSONException #244

Open
daniel-zero opened this issue Mar 25, 2022 · 1 comment
Open

Bug: Request integer results in JSONException #244

daniel-zero opened this issue Mar 25, 2022 · 1 comment

Comments

@daniel-zero
Copy link

daniel-zero commented Mar 25, 2022

Describe the bug
When the requested API returns an integer value the plugin will produce a JSONException error

2022-03-25 22:36:12.396 6531-6775/de.gratisbroker.android.mobileapp.stage E/Capacitor/Plugin: JSONException
org.json.JSONException: Value 1648256400000 of type java.lang.Long cannot be converted to JSONArray

To Reproduce
Call a REST-API returning just an integer value as a result

Expected behavior
The plugin should not try to parse an integer into JSON objects or arrays

duplicates: #211

@SchneMa
Copy link

SchneMa commented Jul 4, 2022

Is there any workaround?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants