Added functionality to read JSON documents from files.