fix date, add JSON endpoint, format pipeline