issue #15 - added writer.writeAll(_, data)
issue #12 - improved simple json mapper