fixed the single space edit to not PUT/POST json fields that don't have values

fixes SPOT-1016

before, it was cleaning up the json data before PUTting back to the server but
kept json fields that had empty values. now, fields that dont have values arent
added to the json so that PUTs and POSTs are correctly RESTful