JSON/YAML file parser with imports