Convert Capnproto's text dump format to JSON.