summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/jsonify.md
blob: 98ad3c78baf2c5eeecb5be6f4ed68171edb1fe09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: jsonify
linktitle: jsonify
description: Encodes a given object to JSON, returning pretty printed output.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [functions]
menu:
  docs:
    parent: "functions"
keywords: [strings,json]
signature: ["jsonify INPUT"]
workson: []
hugoversion:
relatedfuncs: [plainify]
deprecated: false
aliases: []
---

```
{{ dict "title" .Title "content" .Plain | jsonify }}
```

See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].

[pagevars]: /variables/page/