1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use Cow;
/// One step through a document's values, from [`parse`](crate::parse), in document order.
///
/// An object is `ObjectStart`, then a `Key` and its value for each member, then `End`; an array
/// is `ArrayStart`, its elements, then `End`. A JSON Lines file is one document after another.
///
/// Public for jsonvet-cli only and outside the semver contract: it can change in any release.
/// The token an [`Event`] stands for. Strings come decoded, with U+FFFD for a lone surrogate
/// escape. Keys come decoded as WTF-8, which keeps each lone surrogate: see [`key_text`].
///
/// [`key_text`]: crate::key_text
///
/// Public for jsonvet-cli only and outside the semver contract: it can change in any release.