How to Deserialize this JSON file

I am facing this problem to convert this JSON File. Anybody please tell me how to deserialize this JSON file.

Above is my json file


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

It looks like a dictionary, sample with .net core 3.1:

using System.Collections.Generic;
using System.IO;
using System.Text.Json;

namespace ConsoleApp1
    public class Data
        public int id { get; set; }
        public string name { get; set; }

    class Program
        public static void Main(string[] args)
            var dataToDeserialize = File.ReadAllText("Students.json");

            var deserializedResult = JsonSerializer.Deserialize<Dictionary<string, Data>>(dataToDeserialize);

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x