Skip to content

Commit

Permalink
Tweak docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jg-rp committed Mar 26, 2024
1 parent e26f719 commit 8c6508f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/jsonpath-extra.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**_New in version 1.2.0_**

JSON P3 includes some extra, non-standard JSONPath syntax that is not enabled by default. Setting the [`strict`](../api/namespaces/jsonpath.md#jsonpathenvironmentoptions) option to `false` when instantiating a [`JSONPathEnvironment`](../api/classes/jsonpath.JSONPathEnvironment.md) will enable all non-standard syntax.
JSON P3 includes some extra, non-standard JSONPath syntax that is disabled by default. Setting the [`strict`](../api/namespaces/jsonpath.md#jsonpathenvironmentoptions) option to `false` when instantiating a [`JSONPathEnvironment`](../api/classes/jsonpath.JSONPathEnvironment.md) will enable all non-standard syntax.

```javascript
import { JSONPathEnvironment } from "json-p3";
Expand All @@ -15,7 +15,7 @@ values = env.query("$.some.path", data).values();
Non-standard features are subject to change if:

- conflicting syntax is included in a future JSONPath standard or draft standard.
- an overwhelming consensus amongst the JSONPath community emerges that differs from our choices.
- an overwhelming consensus from the JSONPath community emerges that differs from our choices.
:::

## Keys selector
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Download and include JSON P3 in a script tag:
Or use a CDN

```html
<script src="https://cdn.jsdelivr.net/npm/json-p3@0.1.0/dist/json-p3.iife.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/json-p3@1.1.1/dist/json-p3.iife.min.js"></script>
<script>
const data = {
players: [{ name: "Sue" }, { name: "John" }, { name: "Sally" }],
Expand Down

0 comments on commit 8c6508f

Please sign in to comment.