fix serialization on json response