talis-fb / TReq

A CLI tool for effortless HTTP requests
GNU General Public License v3.0
50 stars 3 forks source link

Add nested JSON fields for `=` and `:=` operators #9

Closed talis-fb closed 6 months ago

talis-fb commented 7 months ago

The objective is to replicate this feature in HTTPie (https://httpie.io/docs/cli/nested-json).

  people[name]=Peter  \
  people[about][job]=dev \
  people[about][country]=Brazil \
  people[about][age]:=27 \
  people[skills]:=["Rust", "Python"]
---
{
    "people": {
        "name": "Peter",
        "about": {
            "job": "dev",
            "country": "Brazil",
            "age": 27
        },
        "skills": [
            "Rust",
            "Python"
        ]
    }
}

Additional Considerations: