jsonutil

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package jsonutil contains the coding-agent JSON-with-comments compatibility boundary. It intentionally supports only Pi's line comments and trailing commas rather than accepting a broader JSON5 grammar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripCommentsAndTrailingCommas

func StripCommentsAndTrailingCommas(input string) string

StripCommentsAndTrailingCommas removes // line comments and commas directly before an object or array close. JSON string contents are copied byte for byte, including comment markers and comma-close sequences.

Types

This section is empty.

Jump to

Keyboard shortcuts

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