Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Use real json as output #1

@En3rGy

Description

@En3rGy

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']))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions