Help with JSON in Node Red

This is super simple, but I’m really new to JSON. I’m trying to get brightness and transition in the same node for a service call. The editor is telling me the syntax is wrong, not sure how to format.

{ “brightness_pct”: 10}, { “transition”: 10}

Not

{ “brightness_pct”: 10}, { “transition”: 10}

But

{ "brightness_pct": 10, "transition": 10}

Amongst other things, no smart quotes - smart quotes don’t work.

Hey I really appreciate you helping me out so much. Thanks very much.

This is worth reading :slight_smile:

https://www.w3schools.com/js/js_json_intro.asp

1 Like