Switch to use json for data format