Bug 910594 Add ability to require JSON files

Supercedes #1222