Added a new API for converting local files into their JSON equivalent.