Occupation

Spreadsheets

Is it possible and if it is realistic, then how to parse this table in json, in the following formats:

{"rasps":[{"Day":num_day, "Group":group_num, "Less1":{ "first":{"name":name,"teach1":name,"teach2":name or null},"sec":{"name":name,"teach1":name,"teach2":name or null}}, "Less2"{},...},{...}]} {"groups":[{"_id":group_num,"name":name, "kurs":num_kurs},{...}]} 
  • no clear structure - Sasuke
  • there would be a clear structure without a space could be - Sasuke
  • It is necessary to break the data into groups (training groups) and make a model for them. - Sasuke
  • In my opinion there is a completely more or less normal structure. You need to tinker with the parsing of multi-line data, but it is quite solvable. - Gennady P
  • The fact is that the table in excel is created by someone else - Gardenios

1 answer 1

Nothing is impossible. To facilitate your task, you will most likely have to use such libraries as:

and, of course, implement the model and logic of its validation. Dare! )