using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using System.Xml.Serialization;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public string LINIE { get; set; }
public string ECHTZEIT { get; set; }
public string VERKEHRSMITTEL { get; set; }
public string RBL_NUMMER { get; set; }
public string BEREICH { get; set; }
public string RICHTUNG { get; set; }
public string REIHENFOLGE { get; set; }
public string STEIG { get; set; }
public string STEIG_WGS84_LAT { get; set; }
public string STEIG_WGS84_LON { get; set; }
public string HALTESTELLEN_ID { get; set; }
public string TYP { get; set; }
public string DIVA { get; set; }
public string NAME { get; set; }
public string GEMEINDE { get; set; }
public string GEMEINDE_ID { get; set; }
public string WGS84_LAT { get; set; }
public string WGS84_LON { get; set; }
public string STAND { get; set; }
public List<PLATFORM> PLATFORMS { get; set; }
public List<string> LINES { get; set; }
""HALTESTELLEN_ID"": ""214460106"",
""NAME"": ""Absberggasse"",
""GEMEINDE_ID"": ""90000"",
""WGS84_LAT"": ""48.1738010728644"",
""WGS84_LON"": ""16.3898072745249"",
""VERKEHRSMITTEL"": ""ptTram"",
""STEIG_WGS84_LAT"": ""48.173825035357"",
""STEIG_WGS84_LON"": ""16.3894569315641""
""VERKEHRSMITTEL"": ""ptTram"",
""STEIG_WGS84_LAT"": ""48.1739867818893"",
""STEIG_WGS84_LON"": ""16.3898162576777""
""VERKEHRSMITTEL"": ""ptBusNight"",
""STEIG_WGS84_LAT"": ""48.1738010728644"",
""STEIG_WGS84_LON"": ""16.3892682853544""
""VERKEHRSMITTEL"": ""ptBusNight"",
""STEIG_WGS84_LAT"": ""48.1740406972867"",
""STEIG_WGS84_LON"": ""16.3896994766908""
""HALTESTELLEN_ID"": ""214460107"",
""NAME"": ""Achengasse"",
""GEMEINDE_ID"": ""90000"",
""WGS84_LAT"": ""48.2845258075837"",
""WGS84_LON"": ""16.4488984539143"",
""VERKEHRSMITTEL"": ""ptBusCity"",
""RBL_NUMMER"": ""1168"",
""STEIG_WGS84_LAT"": ""48.284334521556"",
""STEIG_WGS84_LON"": ""16.4489523528313""
""VERKEHRSMITTEL"": ""ptBusCity"",
""RBL_NUMMER"": ""1159"",
""STEIG_WGS84_LAT"": ""48.2844540754073"",
""STEIG_WGS84_LON"": ""16.4509825453734""
internal static void Test()
var dict = JsonConvert.DeserializeObject<Dictionary<long, RootObject>>(json);
var newJson = JsonConvert.SerializeObject(dict, Formatting.Indented);
Console.WriteLine("Re-serialized JSON: ");
Console.WriteLine(newJson);
if (!JToken.DeepEquals(JToken.Parse(json), JToken.Parse(newJson)))
throw new InvalidOperationException("!JToken.DeepEquals(JToken.Parse(json), JToken.Parse(newJson))");
Console.WriteLine("Original and reserialized JSON are equivalent.");
public static void Main()
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);