You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use json.dumps(...) to output today and tomorrow json. This will lead to valid json strings instead of strings containing ' instead of " and showing the u for unicode representation.
Use json.dumps(...) to output today and tomorrow json. This will lead to valid json strings instead of strings containing ' instead of " and showing the u for unicode representation.
replace
self.help.set_output_sbc(self.PIN_O_PRICE_JSON_TODAY, priceinfo['today'])\ .set_output_sbc(self.PIN_O_PRICE_JSON_TOMORROW, priceinfo['tomorrow'])
by
self.help.set_output_sbc(self.PIN_O_PRICE_JSON_TODAY, json.dumps(priceinfo['today']))\ .set_output_sbc(self.PIN_O_PRICE_JSON_TOMORROW, json.dumps(priceinfo['tomorrow']))
The text was updated successfully, but these errors were encountered: