Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoJSONCandidate = jsonrepair.ErrNoJSONCandidate
ErrNoJSONCandidate 表示文本中没有可修复的 JSON 片段。
Functions ¶
func FormatIfJSON ¶
FormatIfJSON 将合法 JSON 格式化;非 JSON 原样返回并标记为 false。
func RepairCandidate ¶
RepairCandidate 修复一个候选 JSON 片段;非对象或数组片段不作为结构化输出候选。
func UnmarshalFromTextStrict ¶
UnmarshalFromTextStrict 从非纯 JSON 文本中抽取并修复 JSON,再按目标结构严格解析。
func UnmarshalStrict ¶
UnmarshalStrict 解析可信 JSON 数据,并拒绝未知字段和尾随 JSON 值。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.