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

[bug] Nested json is not parsed correctly #20

Open
sralloza opened this issue Jan 10, 2023 · 0 comments
Open

[bug] Nested json is not parsed correctly #20

sralloza opened this issue Jan 10, 2023 · 0 comments

Comments

@sralloza
Copy link

The httpie command http :8080/xxx out_1[in_1]=value_1 out_2[in_2]=value_2 out_3=value_3 sends the following payload:

{
    "out_1": {
        "in_1": "value_1"
    },
    "out_2": {
        "in_2": "value_2"
    },
    "out_3": "value_3"
}

But the online tool creates the following curl command:

curl --header 'Content-Type: application/json' --data '{"out_1[in_1]":"value_1","out_2[in_2]":"value_2","out_3":"value_3"}' localhost:8080/xxx

Which sends the payload {"asId[ipv4addr]":"1.1.1.1","qos":"QOS_E","ueId[msisdn]":"+34666777888"}

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

No branches or pull requests

1 participant