Set json option true if file extension is .json