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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:31:50+00:00 2026-06-13T18:31:50+00:00

I have a problem with parsing json. The json data is here: http://beta.fmeserver.com/fmerest/engines/.json?token=0ccfa0400b2d760fa3519baf18a557edb118356e .

  • 0

I have a problem with parsing json.

The json data is here: http://beta.fmeserver.com/fmerest/engines/.json?token=0ccfa0400b2d760fa3519baf18a557edb118356e.

I created some classes with json2csharp, but search is null:

var url = "http://beta.fmeserver.com/fmerest/engines/.json?token=0ccfa0400b2d760fa3519baf18a557edb118356e";

WebClient client = new WebClient();
var json = client.DownloadString(url);
var search = JsonConvert.DeserializeObject<ServiceResponse>(json);

public class Engine
    {
        public int FMEBuildNumber { get; set; }
        public string FMEHostName { get; set; }
        public string FMEInstanceName { get; set; }
        public int currentJobID { get; set; }
        public int maxTransactionResultFailure { get; set; }
        public int maxTransactionResultSuccess { get; set; }
        public int resultFailureCount { get; set; }
        public int resultSuccessCount { get; set; }
        public int transactionPort { get; set; }
    }

    public class Engines
    {
        public List<Engine> engine { get; set; }
    }

    public class ServiceResponse
    {
        public string requestURI { get; set; }
        public string token { get; set; }
        public Engines engines { get; set; }
    }

    [JsonObject(MemberSerialization.OptIn)]
    public class RootObject
    {
        [JsonProperty("serviceResponse")]
        public ServiceResponse ServiceResponse { get; set; }
    }
  • 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-13T18:31:51+00:00Added an answer on June 13, 2026 at 6:31 pm

    How about going dynamic way using Json.Net? (without using any class generated by http://json2csharp.com/)

    var url = "http://beta.fmeserver.com/fmerest/engines/.json?token=0ccfa0400b2d760fa3519baf18a557edb118356e";
    using (WebClient wc = new WebClient())
    {
        string json = wc.DownloadString(url);
    
        dynamic dynobj = JsonConvert.DeserializeObject(json);
    
        foreach (var engine in dynobj.serviceResponse.engines.engine)
        {
            Console.WriteLine("{0} {1}", engine.FMEInstanceName, engine.transactionPort);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with parsing my JSon Data in an Android application. I
I have one problem with parsing *.docx document with OpenXML (C#). So, here's my
I have some problem with JSON parsing. When I hit URL, I've got JSON
I'm facing a bit of an odd problem here. I just launched: http://claudiu.phpfogapp.com/ To
I am trying to get JSON data from Yahoo's Finance API. $.getJSON(http://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20yahoo.finance.quotes%20WHERE%20symbol%3D%27WRC%27&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback, function(data) {
I have a problem parsing a XML file which contains special characters like ,
Ok, I have a very frustrating problem. I am parsing a webpage and need
I have a problem when passing data in .getJSON. The reason for this is
I have a jQuery ajax function that retrieves JSON data. In the success block
I have a JsTree that gets populated based on the JSON Data that 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.