AY2021S1-CS2103T-W10-2/tp

[PE-D] Changing of json file in addR

Closed this issue · 1 comments

I'm sorry.

This output is possible:

image.png

Steps to reproduce:

  1. Use addR's sample example
  2. Exit the program. Delete instruction 1. Resulting data file is:

image.png

Recommendation:
Try to read the json field as an array instead i.e. remove 1) ... from the instruction steps


Labels: severity.Low type.FunctionalityBug
original: lowjiefeng1998/ped#7

the application should still fail gracefully if a user corrupts the file accidentally: dont save numbering in the data file only add the numbering right before it is displayed on UI