Some states are easily mapped to routes. For instance:
'users/:id' -->
The state here is a prime integer, and therefore it is quite easy to create a reasonable route and pass that state to the route handler.
But what strategy should be used when your state is much more complicated (for example, a JSON object, an array of arrays, etc.)?
I notice that Gmail is "tokenizing" its state in what appears to be a base-64 encoded token, for example. something like that:
... and then I imagine that it somehow changes this token back to a meaningful state, but this process is what I got confused about.
Relevant: http://lostechies.com/derickbailey/2011/12/27/the-responsibilities-of-the-various-pieces-of-backbone-js/
source share