This is a nice XBRL to JSON converter. Here are some other projects created by Marcio Alexandre. Here is a paper related to the audit of XBRL-based information.