Documentation ¶
Overview ¶
Package jsonutil provides common utilities for properly handling JSON payloads in HTTP body.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasContentType ¶
check for valid content type.
func Unmarshal ¶
Unmarshal provides a common implementation of JSON unmarshalling with well defined error handling. Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError. It can unmarshal data available in request/data param.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.