feat: allow loading of JSON files as modules

Closes #32

Opening a PR but I would like to do some more integration testing before it lands. Anyway - opening for the review.