Я работаю над проектом, в котором я получаю json из firebase, и я хочу закончить создание таблицы и графиков, используя эти данные, но я не слишком уверен, будет ли легко работать с json против запросов избаза данных для динамической загрузки таблицы и графика. Я не знаю, должен ли я сделать Pojo's или сохранить информацию в базу данных Java в памяти. Значения json являются динамическими, поэтому довольно сложно понять, как их анализировать
Я пытался реализовать зависимость h2, но там было много ошибок, так как заголовок json будет создан динамически
{
"Work Order: Optional(\"buv\")": {
"Manager Name": "John Guy",
"Technician Name": "Hussein N",
"When": "Completed Job",
"fifthPage": {
"Appropriate PPE was used for the work order?": "YES"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Additional Comments": "",
"Reason3": "Planner Scheduler and/or Supervisor\nnotified about work order status",
"Work order process was followed?": "NO"
},
"secondPage": {
"Additional Comments": "Bububj ",
"Reason2": "SOW was changed/altered, SOW\nunachievable by technician",
"Scope of work (SOW) was accurately achieved?": "NO",
"pic1": "https://firebasestorage....
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"Additional Comments": "",
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "N/A"
}
},
"Work Order: Optional(\"h\")": {
"Manager Name": "Jay S",
"Technician Name": "Jasmine S",
"When": "Completed Job",
"fifthPage": {
"Appropriate PPE was used for the work order?": "YES"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Work order process was followed?": "YES"
},
"secondPage": {
"Scope of work (SOW) was accurately achieved?": "YES"
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "YES"
}
},
"Work Order: Optional(\"huss1\")": {
"Manager Name": "Navendra Mahatra Shivani Panday",
"Technician Name": "qhhg",
"When": "qhhgh",
"fifthPage": {
"Additional Comments": "Gigi ",
"Appropriate PPE was used for the work order?": "N/A"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Work order process was followed?": "YES"
},
"secondPage": {
"Additional Comments": "Hihihihi",
"Scope of work (SOW) was accurately achieved?": "N/A",
"pic1": "https://firebasestorage....
},
"sixthPage": {
"Additional Comments": "Nono",
"Job site was presented to be a safe work zone?": "NO",
"Reason2": "Labor time entries made appropriately"
},
"thirdPage": {
"Additional Comments": "Hihihi",
"Reason1": "Signs of work debris residue (i.e. stains,\nclippings, soils, zip ties, dust, drips, spills,\nfingerprints)",
"Reason2": "Appropriate/proper tool(s) used for\nthe job",
"Reason3": "Appropriate material used and/\nor requested",
"Reason4": "The quality of work portrayed trade\nstandard specifications (i.e. shape, cut,\nlevel, plumb, slope/grade, finish, sound)",
"Reason5": "Material was incorrectly ordered/\ndelivered (this option will reflect on the\nmaterial/service provider)",
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "NO",
"pic1": "https://firebasestorage.googleap...
}
},
"Work Order: Optional(\"q\")": {
"Manager Name": "q",
"Technician Name": "q",
"When": "q",
"fifthPage": {
"Appropriate PPE was used for the work order?": "YES"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Work order process was followed?": "YES"
},
"secondPage": {
"Scope of work (SOW) was accurately achieved?": "YES"
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "YES"
}
},
"Work Order: Optional(\"rh\")": {
"Manager Name": "Jay S",
"Technician Name": "Amy V",
"When": "Completed Job",
"fifthPage": {
"Appropriate PPE was used for the work order?": "YES"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Work order process was followed?": "YES"
},
"secondPage": {
"Scope of work (SOW) was accurately achieved?": "YES"
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "YES"
}
},
"Work Order: Optional(\"snsns\")": {
"Manager Name": "Navendra Mahatra Shivani Panday",
"Technician Name": "Kunjan B",
"When": "Completed Job",
"firstPage": {
"Additional Comments": "",
"Technician had professional presentation?": "N/A"
},
"fourthPage": {
"Additional Comments": "",
"Work order process was followed?": "N/A"
},
"secondPage": {
"Additional Comments": "Dkggjfj\n",
"Reason1": "Work being performed/completed\nmatches the description of the work order\ndetails",
"Scope of work (SOW) was accurately achieved?": "NO",
"pic1": "https://firebasestorage.googleap...
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "YES"
}
},
"Work Order: Optional(\"test3\")": {
"Manager Name": "Bob Smith",
"Technician Name": "Jasmine S",
"When": "During job",
"fifthPage": {
"Additional Comments": "",
"Appropriate PPE was used for the work order?": "NO",
"Reason2": "Appropriate size of PPE for work being\nperformed/completed"
},
"firstPage": {
"Technician had professional presentation?": "YES"
},
"fourthPage": {
"Work order process was followed?": "YES"
},
"secondPage": {
"Additional Comments": "",
"Reason1": "Work being performed/completed\nmatches the description of the work order\ndetails",
"Scope of work (SOW) was accurately achieved?": "NO"
},
"sixthPage": {
"Job site was presented to be a safe work zone?": "YES"
},
"thirdPage": {
"The work performed was of Stanford,Facilities Operations and Trade Specific quality?": "YES"
}
}
}