Could you show me your code? Is it like below?
ubus call mqtt pub '{"api":"/user/data", "data":"Fremont ,\n California, \n"}'