examples/power: add JSON string handling