The URI with fragments:
The Selector/State JSON object:
Proof of concept converter between the JSON and the URI+Fragment representation of Selectors and States. See the separate editors’ draft for details.
The script is rudimentary in the sense that it does not check all possible error situations, and does not provide more information on bugs than the exception messages, as raised by the underlying API-s. It definitely does not check the validity of the Selector/State structures, for example.
The URI with fragments:
The Selector/State JSON object: