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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:28:12+00:00 2026-06-17T07:28:12+00:00

I Have a Newtonsoft JSON jObject variable with multidimensional array . Value is listed

  • 0

I Have a Newtonsoft JSON jObject variable with multidimensional array .
Value is listed below. I would like to convert this jObject to Array so we can manage the array in c# very easily. anybody have done slimier please help me.

{
  "DRIVER_CODE": "hk",
  "DRV_NAME": "hk",
  "DRV_ADDR": "hk",
  "DRV_DOB_DT": "07-01-2013",
  "DRV_NATIONALITY": "7",
  "DRV_PHONE1": "kh",
  "DRV_PHONE2": "hk",
  "DRV_MOBILE1": "hk",
  "DRV_MOBILE2": "hk",
  "DRV_LIC_NO": "hk",
  "DRV_LIC_ENDORSE": "hk",
  "DRV_LIC_ISSUE_DT": "08-01-2013",
  "DRV_LIC_EXPIRY_DT": "15-01-2013",
  "DRV_LIC_ISSUEDAT": "hk",
  "DRV_USER_CODE": "hk",
  "DRV_USER_PIN": "hk",
  "DRV_STATUS": 1,
  "DRV_RELIGION": "1",
  "DRV_WEEKLYOFF": "0",
  "DRV_PASSPORT_NUMBER": "hk",
  "DRV_ISSUED_AT": "kh",
  "DRV_ISSUED_DATE": "10-01-2013",
  "DRV_EXPIRY_DATE": "18-01-2013",
  "DRV_VISA_SPONSOR": "kh",
  "DRV_VISA_NUMBER": "hk",
  "DRV_VISA_ISSUEDATE": "17-01-2013",
  "DRV_VISA_EXPIRYDATE": "15-01-2013",
  "DRV_LANG1_CODE": "ARB",
  "DRV_LANG2_CODE": "CHN",
  "DRV_LANG3_CODE": "ENG",
  "NONAVAILABILITY": [
    {},
    {
      "id": 1,
      "fromdate": "15-01-2013",
      "todate": "15-01-2013",
      "reasonVal": "Compassionate Leave",
      "ReasonID": "4"
    },
    {
      "id": 2,
      "fromdate": "30-01-2013",
      "todate": "23-01-2013",
      "reasonVal": "Haj Leave",
      "ReasonID": "3"
    },
    {
      "id": 3,
      "fromdate": "30-01-2013",
      "todate": "23-01-2013",
      "reasonVal": "Haj Leave",
      "ReasonID": "3"
    },
    {
      "id": 4,
      "fromdate": "30-01-2013",
      "todate": "23-01-2013",
      "reasonVal": "Haj Leave",
      "ReasonID": "3"
    },
    {
      "id": 5,
      "fromdate": "30-01-2013",
      "todate": "23-01-2013",
      "reasonVal": "Haj Leave",
      "ReasonID": "3"
    }
  ]
}


I have tried to convert NONAVAILABILITY object to array but it is not sucess. anybody have converted this please submit that will relay helpful.

  • 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-17T07:28:14+00:00Added an answer on June 17, 2026 at 7:28 am
       JArray nonavailability_array = (JArray)role["NONAVAILABILITY"];
    
        for (Int32 i = 1; i < nonavailability_array.Count; i++)
         {
           JObject aItem = (JObject)nonavailability_array[i];
           datetime dt = Convert.ToDateTime(aItem["fromdate"].ToString().Replace('"', ' ').Trim());
          }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following variable of type {Newtonsoft.Json.Linq.JArray} . properties[Value] {[ { Name: Username,
I have a JSON.NET JObject with data structured like this: { foo : {
I have nested JSON strings that i would like to parse out the appropriate
I have a json response like this { latitude: 30.4848, longitude: -70.5484 } Now
I am using Newtonsoft.Json to Deserialize json string to Object, but I can't judge
I have just updated my version of NewtonSoft JSON.NET from version 3.0.0 to 3.5.0
I have an object in Javascript that looks like this function MyObject(){ this.name=; this.id=0;
I have a working application using Json.NET (newtonsoft) as a custom serializer. Currently I'm
I have a simple method using NewtonSoft's JSON serializer and I love it (simple,
How do I setup Newtonsoft Json.net to deserialize this text into a .NET object?

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.