converting nutritoninfo object to json. use food similarity object