Documentation ¶ Index ¶ func Marshal(v any) ([]byte, error) func MarshalIndent(v any, prefix, indent string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ func Marshal(v any) ([]byte, error) Marshal is like json.Marshal but does not escape HTML characters. func MarshalIndent ¶ func MarshalIndent(v any, prefix, indent string) ([]byte, error) MarshalIndent is like json.MarshalIndent but does not escape HTML characters (<, >, &). This is important for prompts and templates that contain these characters and should be stored literally. Types ¶ This section is empty. Source Files ¶ View all Source files jsonutil.go Click to show internal directories. Click to hide internal directories.