Can't find a way to add key value pairs to a JObject (A Newbie)

Hello everyone,

I deserialized a JObject coming from an HTTP Request. Now I want to add a key value pairs to the same JObject but I am having so much trouble trying to make this work. Is there a simple way of doing it that I am missing?

Thanks in advance!

Hi @Hattan_Hamoud

See here for some example on how to create JSON from scratch:

And then, something like this should work:

The result:

Thanks Maciej!
I see how it works now.

1 Like