1# `_utils.mkNginxJSON`
2`filename<str> -> freeformAttrset ==> attrset`
3
4Simple wrapper around [`mkNginxFile`](./mkNginxFile.md) that takes in an attrset and formats it as JSON.
5
6Note that the function signature is different in that it doesn't take in only one attrset.
7This may change in the future.
8
9## Example
10```nix
11services.nginx.virtualHosts."balls.org" = _utils.mkVhost {
12 locations."/" = _utils.mkNginxJSON "index.json" {
13 arbitraryAttribute = "arbitraryValue";
14 doTheyKnow = false;
15 };
16};
17```
18
19<!-- TODO: check if Content-Type is correctly returned with this -->