Hello!
OpenResty comes with the lua-cjson library by default:
http://www.kyne.com.au/~mark/software/lua-cjson.php
I don't know if there's a good Lua XML library out there. Just pick
one that best fits your needs. Or use LuaJIT FFI to call into those
XML C libraries (like libxml2) directly:
http://luajit.org/ext_ffi.html
CPU computation is always blocking anyway but it's usually neglectable
(because it can usually be controlled to be really fast, on the level
of microseconds).
Regards,
-agentzh