I've got a JSON which I post to my WebAPI C# Application. I need to further process this JSON and save data from it into database table. JSON looks like this, and contains latitudes and longitudes:
{
  "lattitudes": [
    48.75608,
    48.75608,
    48.75608,
    48.75608,
    48.75608,
],
  "longitudes": [
    48.75608,
    2.302038,
    48.75608,
    48.75608,
    48.75608,
  ]
}
Note that the JSON contains two arrays of numbers instead of one array of objects each with 2 attributes.
What I would like to do is to write these "lattitudes" and "longitudes" arrays into Lists/Arrays and then foreach them with SQL "INSERT" statement (I know - it's pretty nasty way of doing this, but I couldn't figure out anything smarter).
How can I deserialize this JSON into two List<T> lists for further processing as described?
 
    