setup jackson to prevent closing inputstream or outputstream