work in progress on cmd spray service: Changed return values to JSON format