Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 363 Bytes

from-json.md

File metadata and controls

15 lines (9 loc) · 363 Bytes

from-json

This function decodes a JSON string into a Go datastructure.

Examples

  • (from-json "{\"foo\": 23}"){"foo" 23}
  • (from-json "true")true

Forms

(from-json markup:string)any

This is the only form of this function. It decodes a JSON string and returns the result. If invalid JSON is provided, an error is thrown.