creating json file from inputs