Documentation
¶
Overview ¶
Package jsonc provides utilities for handling JSON with comments (JSONC).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripComments ¶
StripComments removes JavaScript-style comments and trailing commas from JSONC content. Handles both single-line (//) and multi-line (/* */) comments. Also removes trailing commas (commas followed only by whitespace before ] or }) which are valid in JSONC but not JSON. Preserves strings that contain comment-like sequences.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.