Plug v1.2.2 Plug.Parsers.JSON

Parses JSON request body.

JSON arrays are parsed into a "_json" key to allow proper param merging.

An empty request body is parsed as an empty map.

Summary

Functions

parse(conn, arg2, subtype, headers, opts)

Callback implementation for Plug.Parsers.parse/5.