Back to Chezmoi

`fromJson` *jsontext*

assets/chezmoi.io/docs/reference/templates/functions/fromJson.md

2.70.2434 B
Original Source

fromJson jsontext

fromJson parses jsontext as JSON and returns the parsed value.

JSON numbers that can be represented exactly as 64-bit signed integers are returned as such. Otherwise, if the number is in the range of 64-bit IEEE floating point values, it is returned as such. Otherwise, the number is returned as a string. See RFC7159 Section 6.