Sitelet https://nx.dev/docs/reference/devkit/stripJsonComments
Skip to content

▸ stripJsonComments(text, replaceCh?): string

Takes JSON with JavaScript-style comments and remove them. Optionally replaces every none-newline character of comments with a replaceCharacter

NameType
textstring
replaceCh?string

string