parsing - c# error when parse string to JSON -
i have bit text when trying parse json in c# program through error "error reading jobject jsonreader. current jsonreader item not object: string. path '', line 1, position 6."
text:
"data":[{"username":"sex","bio":"#u24e2kyu24d4u24e7pressionsninstagramsex@gmail.com","website":"","profile_picture":"http://images.ak.com/profiles/profile_37086_75sq_1363954517.jpg","full_name":"sex","id":"37086"}]
my code:
jobject obj = jobject.parse(text);
i want username value when parse json
i put { }
around entire string.
i.e. change text to:
{"data":[{"username":"sex","bio":"#u24e2kyu24d4u24e7pressionsninstagramsex@gmail.com","website":"","profile_picture":"http://images.ak.com/profiles/profile_37086_75sq_1363954517.jpg","full_name":"sex","id":"37086"}]}
Comments
Post a Comment