capacitor-community / http

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

Add fragmentsAllowed option to JSONSerialization.jsonObject #254

Open christianidas opened 2 years ago

christianidas commented 2 years ago

We have a request to an API that is returning a JSON string (not an object). We'd like to have this response parsed, but the option for fragmentsAllowed is needed in order to parse non-object JSON. This change should allow those JSON strings, numbers, booleans, etc. to be parsed in addition to objects.

Note: The npm run build added to the prepare script in package.json allows us to install the capacitor plugin from a github repository, which we're doing in the meantime. This can be removed if desired, as it's not needed when the plugin is published in an npm registry.