Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6057097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:27:02+00:00 2026-05-23T08:27:02+00:00

I have a JSON resonse (HTTPWebResponse) coming back from my WCF Service. It looks

  • 0

I have a JSON resonse (HTTPWebResponse) coming back from my WCF Service. It looks like this :

{
    "New SessionResult": [
        {
            "Key": "Token",
            "Value": "token_value"
        }
    ]
}

I am using JSON.NET (http://james.newtonking.com) and I cant figure out how to deserialize this response into a Dictionary<string, string>. I have tried several things but each one says in different wording “cannot convert JSON into sting”. Currently I tried this :

Dictionary<string, string> values = JsonConvert.DeserializeObject<Dictionary<string, string>>(reader.ReadToEnd());

If possible I could just get certain values to place directly into strings.
Example) JSON response has key,value pair (Token,token_value), I want to get the value for the key “Token” and place it in the local string “string Token”.

Anyone help please, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:27:02+00:00Added an answer on May 23, 2026 at 8:27 am

    You should try the Newtonsoft.Json plugin: http://json.codeplex.com/

    in your case you’d end up with something like:

     JObject json = JObject.Parse(jsonResponseData);
     ...
     mydic.Add(json["New SessionResult"]["Key"], json["New SessionResult"]["Value"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON response that looks like this. I want to extract the
I have a JSON response from Facebook liking like this. [ {uid=>123, name=>Test, is_app_user=>true},
Am new to jquery. Have json response from php in this format. { div1:{data:minute=0,hour=27,day=649,month=19K,smallSize=0,
I have some JSON returned to the browser like this product: { Title: School
I have a JSON response from a web service that I need to be
I have got below JSON response from my ASPX page back to my client
I have Json response from my database . I am using Php for this
I am attempting to parse some json I am getting back from a service.
I have a JSON response that is formatted from my C# WebMethod using the
I have one JSON that is coming in a string format. I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.