add upload capability of json files