Ticket #237 json export type

Hopefully this is what you wanted.