Fix code to write json and csv from public bodies.
Adds data for public bodies.