Discussion posts and replies are publicly visible
This depends somewhat on how you set up your interface. Do you have a single rule input or multiple? Are you using CDTs for rule inputs? Does your JSON data match the structure of your CDT?
The best case scenario here is that you would use a CDT as the type of data in your rule input. Then, you would have JSON that exactly matches the fields names / structure of your CDT. If that's the case, it's pretty easy:
If your JSON data doesn't exactly match the names of your CDT fields, you may need to massage the data a bit to make it match. Also, if you use many separate rule inputs, it's probably easier to just enter text values for each of them.