A simple framework for serializing and deserializing Json stream