How to Convert HTTP Request to JSON API?

Hello, is there a tool to convert an HTTP request to JSON ?
For example: how is this as JSON:
SM=0&SS=0&SV=2&S=0&S2=299&GP=1&SP=0&RV=0&SB=255&A=255&R=255&G=0&B=0&W=0&R2=0&G2=0&B2=0&W2=0&FX=60&SX=203&IX=246&T=1
Thanks
Norbert

You could go a different route and do a compare.

Before sending the http string, request the full json configuration.
Send the http request.
Request the full json configuration again.
Use a compare tool to highlight the differences. That’s the json.

1 Like

@huggy-d1 : works perfect, thanks! :+1:

Glad you found a solution that worked for you. Now I am curious. What compare tool did you choose? Hopefully not your eyeballs, although that would certainly work.

Using Notepad++ and CSDiff.exe and testing with Node-RED

Excellent tool selection! I had n++ in mind when I wrote “compare”. Some folks are command line driven and would have used a diff tool - there are quite a few of those tools available too.