I want to post a json with one line of text ex. "Hello, I'm waiting for you"
I tried this: { "":"Hello, I'm waiting for you" }
But doesn’t work.
I tried to post only the text, but that doesn’t work.
And I tried { "Hello, I'm waiting for you" } as well, but as I suspected it is a malformed JSON.
EDITED:
The goal is to send this HTTP REQUEST
POST /controller/action HTTP/1.0
Host: sample.net
Authorization: Basic falseSignOfPasswordAndUser
Content-Type: application/json
"Hello, I'm waiting for your"
As petesiss said you could said an array, but that seems overkill. I would advise you to revise your protocol, or not use json at all.
EDIT: to sum up the discussion in the comments : OP didn’t need to send JSON, the protocol only specified he would receive a answer to his request in JSON.
So he sent plain text, it worked and unicorns started walking the earth again (or nearly).