Skip to content

Commit 357f2e6

Browse files
Add YAML to JSON example
Add YAML to JSON example
1 parent 064e777 commit 357f2e6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

yaml-to-json-example.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### YAML to JSON Example
2+
3+
YAML:
4+
```yaml
5+
apiVersion: v1
6+
kind: Service
7+
metadata:
8+
name: demo
9+
10+
11+
JSON:
12+
13+
{
14+
"apiVersion": "v1",
15+
"kind": "Service",
16+
"metadata": { "name": "demo" }
17+
}
18+
19+
20+
Online converter:
21+
https://jsonviewertool.com/yaml-to-json

0 commit comments

Comments
 (0)