Moved json dumping to from ship to serve