L3 Moderations via the new api

I’m trying to run the moderations lessons locally, but since they openai api has changed it is very difficult, (for me) to get an json output
response = openai.Moderation.create(
input=“”"
Here’s the plan. We get the warhead,
and we hold the world ransom…
…FOR ONE MILLION DOLLARS!
“”"
)
moderation_output = response[“results”][0]
print(moderation_output)

Would become something like this:
response = client.moderations.create(input=“Sample text goes here.”)
response.results[0]
this gives you something back, but no json.
I found a solution here: Moderations.create - how to save and parse output? - API - OpenAI Developer Forum
And I tried it with a system (give me json back (please!) and client role, but no json back.
I liked the previous openai api better!
Any help to get me a json?