Retrieving a large JSON data object from an API, a lot of which needs to be rendered for the view.
There are numerous date fields nested throughout the object, all of which are in milliseconds.
These are required to be converted to a date object for the view.
What is the most pragmatic approach to achieve this?
Is it simply to loop over the object and call getTime() on each of the date fields, or is there something a little more cleaner?
Any advice would be much appreciated.