refs #6 add Json serialization support