JuliaWeb / JuliaWeb/JuliaWebAPI.jl

JSON requests support

Open
#73 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
189
Forks
29
PR merge metrics
No merged PRs in 30d

Description

I'm trying to process POST requests with JSON body. For now I don't see a way how to do it.
`parsepostdata` doesn't recognize the header `Content-Type: application/json` and interprets the data as parameters of a query only.

Any suggestions why it is not implemented? Should I use other libraries for JSON processing like Mux.jl or is it just non implemented feature?

```HTTP
POST /document HTTP/1.1
Host: localhost
Content-Type: application/json
cache-control: no-cache
Postman-Token: 6761fa70-a0d8-413a-a31c-79e882cc17d2

{
"key":"document",
"value":{"text":"some text"},
"description":"",
"type":"text",
"enabled":true
}------WebKitFormBoundary7MA4YWxkTrZu0gW--
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.