Move data json parsing function into new page