Skip to content

Fixes #98 - handle simple values in JSON array responses#96

Open
mungler wants to merge 1 commit intodchohfi:masterfrom
asmallworldsite:fix/simple_arrays
Open

Fixes #98 - handle simple values in JSON array responses#96
mungler wants to merge 1 commit intodchohfi:masterfrom
asmallworldsite:fix/simple_arrays

Conversation

@mungler
Copy link
Contributor

@mungler mungler commented Apr 14, 2022

This patch allows simple (non-object) arrays at the top level of the JSON data. Previously KVOM assumed that any top-level array was populated with JSON objects - i.e. should be parsed as an array of dictionaries.

This allows simple array responses, such as arrays of strings, to be processed correctly.

@mungler mungler changed the title handle simple values in JSON array responses Fixes #98 - handle simple values in JSON array responses Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant