json: NGINX JSON module
Debian/Ubuntu installation
These docs apply to the APT package nginx-module-json provided by the GetPageSpeed Extras repository.
- Configure the APT repository as described in APT repository setup.
- Install the module:
sudo apt-get update
sudo apt-get install nginx-module-json
Show suites and architectures
| Distro | Suite | Component | Architectures |
|----------|-------------------|-------------|-----------------|
| debian | bookworm | main | amd64, arm64 |
| debian | bookworm-mainline | main | amd64, arm64 |
| debian | trixie | main | amd64, arm64 |
| debian | trixie-mainline | main | amd64, arm64 |
| ubuntu | focal | main | amd64, arm64 |
| ubuntu | focal-mainline | main | amd64, arm64 |
| ubuntu | jammy | main | amd64, arm64 |
| ubuntu | jammy-mainline | main | amd64, arm64 |
| ubuntu | noble | main | amd64, arm64 |
| ubuntu | noble-mainline | main | amd64, arm64 |
Module:
Directives:
Syntax: json_load $json string;
Default: ——
Context: http, server, location
Loads string (may contains variables) into (json) variable $json.
Syntax: json_dump $string $json [name ...];
Default: ——
Context: http, server, location
Dumps (json) variable $json into (string) variable $string (may point path by names).