I have a C# application getting a string from an HTTP listener. The data is sent to my application in the JSON format, and I am trying to get the specific values.
Right now, I read the data sent to me using:
            HttpListenerContext context = listener.GetContext();
            var request = context.Request;
            string message;
            using (var reader = new StreamReader(request.InputStream,
                                                 request.ContentEncoding))
            {
                message = reader.ReadToEnd();
            }
The string message = { "message": "I've been shot!", "phoneNumber": "12345?", "position": "???", "anon": "???", "job": "ambulance" }
How would I go about getting these specific values and setting a string equal to the message, phonenumber, position, etc. Instead of just using the reader.ReadToEnd()
Thanks!