Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #6558 - improved json array converter #6571

Merged
merged 2 commits into from Aug 3, 2021

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Aug 2, 2021

No description provided.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Introduced `arrayConverter` in both JSON and AsyncJSON.Factory.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested a review from gregw August 2, 2021 09:44
@sbordet sbordet added this to In progress in Jetty 9.4.44 FROZEN via automation Aug 2, 2021
@sbordet sbordet linked an issue Aug 2, 2021 that may be closed by this pull request
@joakime joakime changed the title Jetty 9.4.x 6558 json array converter Issue #6558 - improved json array converter Aug 2, 2021
assertTrue(result.getClass().isArray(), json + " -> " + result);

// Configure AsyncJSON to return arrays.
factory.setArrayConverter(List::toArray);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, now that setArrayConverter method and signature makes sense to me.

Jetty 9.4.44 FROZEN automation moved this from In progress to Reviewer approved Aug 2, 2021
@sbordet sbordet merged commit 342396c into jetty-9.4.x Aug 3, 2021
Jetty 9.4.44 FROZEN automation moved this from Reviewer approved to Done Aug 3, 2021
@sbordet sbordet deleted the jetty-9.4.x-6558-json-array-converter branch August 3, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Allow to configure return type in JSON array parsing
3 participants