json

package
v0.5.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractJSON

func ExtractJSON(input string) []string

ExtractJSON extracts potential JSON blocks from the provided input string. The input string can either be raw JSON or markdown containing JSON code-blocks. The returned strings are sanitized. Codeblocks that do not contain valid JSON are ignored.

func SanitizeJSONString

func SanitizeJSONString(input string, fromMarkdown bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL