Skip to content

Added to_deep_hash() method into Mojo::Parameters - #2332

Open
buralien wants to merge 2 commits into
mojolicious:mainfrom
buralien:feature/to-deep-hash
Open

Added to_deep_hash() method into Mojo::Parameters#2332
buralien wants to merge 2 commits into
mojolicious:mainfrom
buralien:feature/to-deep-hash

Conversation

@buralien

@buralien buralien commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Allow deeply expanding query parameters which use bracketed notation using Mojo::Parameters::to_deep_hash()

Motivation

Some HTML forms and frontend JavaScript libraries post data using query parameters such as "foo[bar]=baz", but currently there is no way for Mojolicious to expand "foo" into a hashref with "bar" as key and "baz" as it's value. Current to_hash() method returns this as {"foo[bar]" => "baz"}.

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