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

Add an Operation to Decode a URI to a JSON Object #1935

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Matir
Copy link

@Matir Matir commented Oct 28, 2024

This essentially turns http://www.example.org:9999/path?foo=bar&baz=1&baz=2#frob into the following:

{
    "protocol": "http:",
    "hostname": "www.example.org",
    "port": "9999",
    "pathname": "/path",
    "hash": "#frob",
    "query": {
        "foo": "bar",
        "baz": [
            "1",
            "2"
        ]
    }
}

This is more or less just exposing the WHATWG URL API to allow further processing of URL components (i.e., via JPATH selectors).

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