My attempt at a reproduction of the JSON library.