support JSON files and arrays when displaying inline