passing json object from ui to rest service level