read JSON from files in the CLI closes #525
merge