Link to home
Start Free TrialLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

get json value in c#

I am returning a string
"{\"valid\":\"true\",\"number\":\"0721224548924\",\"itemname\":\"adidas\",\"alias\":\"\",\"description\":\"\",\"avg_price\":\"\",\"rate_up\":0,\"rate_down\":0}"

Open in new window


 string sLine = "";
                int i = 0;

                while (sLine != null)
                {
                    i++;
                    sLine = objReader.ReadLine();
                    if (sLine != null)
                        Console.WriteLine("{0}:{1}", i, sLine);
                }

Open in new window

Not sure how to get the value of each on the c# end.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Seven price

ASKER

great thanks Happy new year