18 root_name: Optional[str] = self.
peek_key()
19 snapshot: Snapshot = Snapshot.of(self.value_reader.next_value())
21 next_key: Optional[str] = self.value_reader.
peek_key()
22 if next_key
is None or next_key ==
"[end of file]":
24 facet_idx: int = next_key.find(
"[")
28 facet_root, facet_name = (
30 next_key[facet_idx + 1 : -1],
32 if facet_root == root_name:
33 facet_value = self.value_reader.next_value()
34 snapshot = snapshot.plus_facet(facet_name, facet_value)