Closed dweiss closed 1 year ago
This adds support for embedding JSON with comments, optionally removing comments and trimming outer curly brackets. The syntax remains the same as with key selectors:
<pre data-embed="./examples/json.json" data-jsonpath="$..labelFilter{'key1', 'key2', trim-brackets, remove-comments}"></pre>
Note the 'options' (trim-brackets, remove-comments) which are not quoted. Quoted values are keys to select from labelFilter node.
This is a transparent change and allows for interesting possibilities like including partial values, including comments with highlights, etc.
This adds support for embedding JSON with comments, optionally removing comments and trimming outer curly brackets. The syntax remains the same as with key selectors:
Note the 'options' (trim-brackets, remove-comments) which are not quoted. Quoted values are keys to select from labelFilter node.
This is a transparent change and allows for interesting possibilities like including partial values, including comments with highlights, etc.