Added ensure json filetype