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

Options for returning arrays #308

Closed
mattBrzezinski opened this issue Jun 22, 2020 · 1 comment
Closed

Options for returning arrays #308

mattBrzezinski opened this issue Jun 22, 2020 · 1 comment

Comments

@mattBrzezinski
Copy link

I'm currently working on AWS.jl. To test the REST JSON functionality I am passing in some inputs with parameters as arrays. This currently returns back the following;

foo = Dict("Tags" => ("Test-01" => "Test-01", "Test-02" => "Test-02"))
json(foo)

{
  "Tags": [
    {"Test-01":"Test-01"},
    {"Test-02":"Test-02"}
  ]
}

However, AWS expects the request input to look like, note the lack of square brackets:

{
  "Tags":
  {
    "string": "string",
    "string": "string"
  }        
}

I was wondering if we can add in a kwarg to specify which style of array output to return back.

@mattBrzezinski
Copy link
Author

Nvm. Doing Dicts of Dicts will work me around this.

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