summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/data/GetJSON.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/data/GetJSON.md')
-rw-r--r--docs/content/en/functions/data/GetJSON.md9
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/content/en/functions/data/GetJSON.md b/docs/content/en/functions/data/GetJSON.md
index 96812e7c0..4db3c8988 100644
--- a/docs/content/en/functions/data/GetJSON.md
+++ b/docs/content/en/functions/data/GetJSON.md
@@ -89,8 +89,7 @@ my-project/
{{ $data := "" }}
{{ $p := "data/books.json" }}
{{ with resources.Get $p }}
- {{ $opts := dict "delimiter" "," }}
- {{ $data = . | transform.Unmarshal $opts }}
+ {{ $data = . | transform.Unmarshal }}
{{ else }}
{{ errorf "Unable to get resource %q" $p }}
{{ end }}
@@ -113,8 +112,7 @@ my-project/
{{ $data := "" }}
{{ $p := "books.json" }}
{{ with .Resources.Get $p }}
- {{ $opts := dict "delimiter" "," }}
- {{ $data = . | transform.Unmarshal $opts }}
+ {{ $data = . | transform.Unmarshal }}
{{ else }}
{{ errorf "Unable to get resource %q" $p }}
{{ end }}
@@ -131,8 +129,7 @@ Consider using the [`resources.GetRemote`] function with [`transform.Unmarshal`]
{{ with .Err }}
{{ errorf "%s" . }}
{{ else }}
- {{ $opts := dict "delimiter" "," }}
- {{ $data = . | transform.Unmarshal $opts }}
+ {{ $data = . | transform.Unmarshal }}
{{ end }}
{{ else }}
{{ errorf "Unable to get remote resource %q" $u }}