[json] Added hook handlers to the JSONCodec