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 8522819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:14:04+00:00 2026-06-11T07:14:04+00:00

I am parsing JSON and I get the following error: I am using the

  • 0

I am parsing JSON and I get the following error:

I am using the Newtonsoft.Json.NET dll.

Error reading string. Unexpected token: StartObject. Path ‘[0]’, line 1, position 2.

This is the code that I have:

public static List<string> GetPluginByCategory(string category)
    {
        var wc = new WebClient();
        var json = wc.DownloadString("http://api.bukget.org/api2/bukkit/category/" + category);
        var list = JsonConvert.DeserializeObject<List<string>>(json);
        return list;
    }

category can be one of the following strings:

[“Admin Tools”, “Anti-Griefing Tools”, “Chat Related”, “Developer Tools”, “Economy”, “Fixes”, “Fun”, “General”, “Informational”, “Mechanics”, “Miscellaneous”, “Role Playing”, “Teleportation”, “Website Administration”, “World Editing and Management”, “World Generators”]

EDIT: This is the response I get:

 [{"description": "Stop users swearing\n", "name": "a5h73y", "plugname": "NoSwear"}, {"description": "Be sure that your server rules are read and accepted!", "name": "acceptdarules", "plugname": "AcceptDaRules"}]

Does anybody know why it doesn’t work? It used to work before :/.

  • 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-06-11T07:14:06+00:00Added an answer on June 11, 2026 at 7:14 am

    Your json is an array of complex object not an array of strings. Try this (TESTED):

    WebClient wc = new WebClient();
    string json = wc.DownloadString("http://api.bukget.org/api2/bukkit/category/Teleportation");
    
    var items = JsonConvert.DeserializeObject<List<MyItem>>(json);
    
    public class MyItem
    {
        public string description;
        public string name;
        public string plugname;
    }
    

    EDIT

    WebClient wc = new WebClient();
    var json = wc.DownloadString("http://api.bukget.org/api2/bukkit/plugin/aboot");
    
    dynamic dynObj = JsonConvert.DeserializeObject(json);
    Console.WriteLine("{0} {1}", dynObj.plugname,dynObj.link);
    foreach (var version in dynObj.versions)
    {
        var dt = new DateTime(1970, 1, 1).AddSeconds((int)version.date);
        Console.WriteLine("\t{0} {1} {2}",version.version, version.download, dt);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing some json to return a basic string token or error message. -
My service side code is implemented using Resteasy @GET @Path(/ad-details/{query}) @Produces(application/json) public String getAdDetails(@PathParam(query)
I am using the following JS code to parse a JSON string from a
I am doing some json parsing in a bash script: curl http://myurl.com/get.json | sed
I am having trouble parsing my JSON which i get from javascript. The format
I am using JSON parsing, I put data in array named JSON Array .
Just wondering what that error could mean? I get it from the following code..
I try to get parse JSON response for the following link: https://graph.facebook.com/feed/?ids=135395949809348,149531474996&access_token= The response
I have a question about type casting. I have the following JSON String: {server:clients,method:whoIs,arguments:[hello]}
I am working on making a mini app using Json parsing . Output I

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.