switched to json-smart library