
Deserialize A json array to C# Class Object
- or -
Post a project like this$50
- Posted:
- Proposals: 6
- Remote
- #2504947
- Expired
Description
Experience Level: Entry
I have the following JSon Array returned from a webservice. I need to deserialize it to a C# class to access the inner information. What i'm looking for is the classes to effectively deserialize and the C# Method to access & assign each Stop address, Coords, and each reportLines Lmiles to variables
[
{
"__type": "MileageReport:http://pcmiler.alk.com/APIs/v1.0",
"RouteID": null,
"ReportLines": [
{
"Stop": {
"Address": {
"StreetAddress": "",
"City": "Beaver Dam",
"State": "WI",
"Zip": "53916",
"County": "Dodge",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "Wisconsin",
"StateAbbreviation": "WI",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "43.513970",
"Lon": "-88.793570"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "CDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.034,
"CrossStreet": null
},
"LMiles": "0.000",
"TMiles": "0.000",
"LCostMile": "0.00",
"TCostMile": "0.00",
"LHours": "0:00",
"THours": "0:00",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "0.0",
"TEstghg": "0.0",
"EtaEtd": null
},
{
"Stop": {
"Address": {
"StreetAddress": "4520 Industrial Avenue",
"City": "Roseville",
"State": "CA",
"Zip": "95678",
"County": "Placer",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "California",
"StateAbbreviation": "CA",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "38.792800",
"Lon": "-121.309700"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "PDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.096,
"CrossStreet": null
},
"LMiles": "2034.249",
"TMiles": "2034.249",
"LCostMile": "2911.95",
"TCostMile": "2911.95",
"LHours": "34:35",
"THours": "34:35",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "7064.7",
"TEstghg": "7064.7",
"EtaEtd": null
},
{
"Stop": {
"Address": {
"StreetAddress": "",
"City": "Valdosta",
"State": "GA",
"Zip": "31601",
"County": "Lowndes",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "Georgia",
"StateAbbreviation": "GA",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "30.821100",
"Lon": "-83.305660"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "EDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.022,
"CrossStreet": null
},
"LMiles": "2652.521",
"TMiles": "4686.770",
"LCostMile": "3853.47",
"TCostMile": "6765.42",
"LHours": "46:24",
"THours": "80:58",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "9211.9",
"TEstghg": "16276.5",
"EtaEtd": null
}
],
"TrafficDataUsed": false
}
]
[
{
"__type": "MileageReport:http://pcmiler.alk.com/APIs/v1.0",
"RouteID": null,
"ReportLines": [
{
"Stop": {
"Address": {
"StreetAddress": "",
"City": "Beaver Dam",
"State": "WI",
"Zip": "53916",
"County": "Dodge",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "Wisconsin",
"StateAbbreviation": "WI",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "43.513970",
"Lon": "-88.793570"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "CDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.034,
"CrossStreet": null
},
"LMiles": "0.000",
"TMiles": "0.000",
"LCostMile": "0.00",
"TCostMile": "0.00",
"LHours": "0:00",
"THours": "0:00",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "0.0",
"TEstghg": "0.0",
"EtaEtd": null
},
{
"Stop": {
"Address": {
"StreetAddress": "4520 Industrial Avenue",
"City": "Roseville",
"State": "CA",
"Zip": "95678",
"County": "Placer",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "California",
"StateAbbreviation": "CA",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "38.792800",
"Lon": "-121.309700"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "PDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.096,
"CrossStreet": null
},
"LMiles": "2034.249",
"TMiles": "2034.249",
"LCostMile": "2911.95",
"TCostMile": "2911.95",
"LHours": "34:35",
"THours": "34:35",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "7064.7",
"TEstghg": "7064.7",
"EtaEtd": null
},
{
"Stop": {
"Address": {
"StreetAddress": "",
"City": "Valdosta",
"State": "GA",
"Zip": "31601",
"County": "Lowndes",
"Country": "United States",
"SPLC": null,
"CountryPostalFilter": 0,
"AbbreviationFormat": 0,
"StateName": "Georgia",
"StateAbbreviation": "GA",
"CountryAbbreviation": "US"
},
"Coords": {
"Lat": "30.821100",
"Lon": "-83.305660"
},
"Region": 4,
"Label": "",
"PlaceName": "",
"TimeZone": "EDT",
"Errors": [],
"SpeedLimitInfo": null,
"ConfidenceLevel": "Exact",
"DistanceFromRoad": 0.022,
"CrossStreet": null
},
"LMiles": "2652.521",
"TMiles": "4686.770",
"LCostMile": "3853.47",
"TCostMile": "6765.42",
"LHours": "46:24",
"THours": "80:58",
"LTolls": "0.00",
"TTolls": "0.00",
"LEstghg": "9211.9",
"TEstghg": "16276.5",
"EtaEtd": null
}
],
"TrafficDataUsed": false
}
]

Matt S.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
0%
Last project
16 Aug 2019
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
HI Matt,
Have u selected freelancer for this task?
838839
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies