fix json dump in legislators template