Use Jackson serialization and deserialization as entities to fix formatting issues