Using JSON means having some limitations as to what you can save, are there any other alternatives, like something that might allow cyclic references, and mixed tables / number keys that are not in order?
Something that might be able to natively serialize certain types could be also cool.