Skip to content

Commit

Permalink
chore: use backquote instead of escaping result
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Nov 27, 2024
1 parent 26b350d commit 50002f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/registries/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The function converts a JSON string into a corresponding Go data structure, enab
{% tabs %}
{% tab title="Template Example" %}
```go
{{ "{\"name\":\"John\", \"age\":30}" | fromJson }} // Output: map[age:30 name:John]
{{ `{"name":"John", "age":30}` | fromJson }} // Output: map[age:30 name:John]
{{ "{\\invalid" | fromJson }} // Error
```
{% endtab %}
Expand Down

0 comments on commit 50002f7

Please sign in to comment.