Skip to content

Parse JSON array data in body at top level #1730

Open
@Mateus-Resende

Description

@Mateus-Resende

Hi there,

I'm trying to setup a route that will be able to receive a post request with an array (valid json) without having to name it. For example if I do

curl -XPOST -d '[{"foo": "baz"}, {"foo": "bar"}]' locahost:3000/foo

I want to be able to access this array of data. Is there any way I can do it ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions