Add an option to dump JSON information

This will add an option to dump JSON information in `info_dict`. I use this option a lot, thought it might help others.