E
E
estry2018-04-24 12:23:23
C++ / C#
estry, 2018-04-24 12:23:23

Post json. How to send a request using ZennoPoster?

Hello.
I ask for help, I've been struggling with Serialization for a couple of hours now . Gets to line 5 and stumbles
https://puu.sh/A9wTe/69f46a5824.png
What am I missing?
Here is the error
https://puu.sh/A9wVR/50021279be.png
I checked the request through the service
https://puu.sh/A9wXa/73ee153955.png
Valid. The model was built without questions
https://puu.sh/A9xkT/80701a5dd7.png
If you form without a task, then everything goes!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2018-05-03
@estry

On line 9, you are trying to use a task object that you didn't create, and since it's null, you get an error.
Alternatively, just create a task object separately and then assign it to Test.

Task task = new Task();
task.type = "bla";

Test.task = task;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question