How to convert json data to html page as under each date show category + time1?

Hi, freeCodeCamp team

I have this json data

myArray = [
  { 'category': 'apple', 'date': '20/4/2023', 'time1': '12:30' },
  { 'category': 'banana', 'date': '20/4/2023', 'time1': '12:32' },
  { 'category': 'tv', 'date': '21/4/2023', 'time1': '12:34' },
  { 'category': 'banana', 'date': '21/4/2023', 'time1': '12:39' },

];

I want to show these data on html page as line of date and under each date all related category + time1 to that date
any help is appreciated

expected output can be as :

----------20/4/2023-------------
apple 12:30
banana 12:32
----------21/4/2023-------------
tv 12:34
banana 12:39

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.