added updateData to parse json file