Avoid nil module value.
Added utility to generate JSON from a dump.