MCPcopy Create free account
hub / github.com/github/gh-aw / marshalJSONWithoutHTMLEscape

Function marshalJSONWithoutHTMLEscape

pkg/parser/frontmatter_hash.go:43–45  ·  view source on GitHub ↗

marshalJSONWithoutHTMLEscape marshals a value to JSON without HTML escaping This matches JavaScript's JSON.stringify behavior

(v any)

Source from the content-addressed store, hash-verified

41// marshalJSONWithoutHTMLEscape marshals a value to JSON without HTML escaping
42// This matches JavaScript's JSON.stringify behavior
43func marshalJSONWithoutHTMLEscape(v any) (string, error) {
44 return jsonutil.MarshalCompactNoHTMLEscape(v)
45}
46
47// marshalSorted recursively marshals data with sorted keys
48func marshalSorted(data any) string {

Callers 2

marshalSortedMapFunction · 0.85
marshalSortedValueFunction · 0.85

Calls 1

Tested by

no test coverage detected