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.
https://fasp-ee999.firebaseio.com/Students.json?auth=yB71DWGpZeBBQjvtEvc4yeROXO8zp717W180rlzw

Above is my json file

Answers:

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 stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x