You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`compile()` is also re-exported to JSON P3's top-level namespace.
149
149
150
+
### Query serialization
151
+
152
+
A [compiled `JSONPathQuery`](#compilation) can be serialized back to a string using its [`toString()`](./api/namespaces/jsonpath/classes/JSONPathQuery.md#tostring) method. As of version 2.1.0, the default string representation uses shorthand notation where possible and double quotes for names and string literals rather than single quotes.
To serialize a `JSONPathQuery` using the canonical bracket notation and single quotes, pass a [`SerializationOptions`](./api/namespaces/jsonpath/type-aliases/SerializationOptions.md) object as an argument to `toString()`.
0 commit comments