Convert grid view to fit new json format