Not important, but you did make a json encoder if I recall correctly. Why not use that here?