Adaptation primitive to perform valueobject
add stream arg to jsonserializer