Add support for JSON with Comments.

Support is similar to JSON5, except block comments are also supported.
This commit is contained in:
Rich Alimi
2023-02-25 06:22:46 +00:00
parent 9430173992
commit 53f6d2f8fe
4 changed files with 47 additions and 2 deletions

View File

@@ -292,6 +292,23 @@ index 0000000..525e25d
+ # This function should probably do something more interesting
+ # labels: help wanted
+}
diff --git a/tests/config.jsonc b/tests/config.jsonc
new file mode 100644
index 0000000..525e25d
--- /dev/null
+++ b/tests/config.jsonc
@@ -0,0 +0,11 @@
+{
+ "myConfig": [
+ /*
+ GitRepository where 'Git release/tag'
+ matches 'Helm' version
+ */
+ "itIsWonderful",
+ // TODO: Delete this line from the codebase
+ "butItHasSomePendingActivities"
+ ]
+}
diff --git a/tests/config.json5 b/tests/config.json5
new file mode 100644
index 0000000..525e25d