Fast JSON parsing and encoding