Add toJSON method to collections

Okay as long as they don’t want a snapshot and don’t modify it. Maybe not okay eh?