You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm relatively new to Rust, and even more so to serde, so I'm having trouble finding out if this is even doable.
I have a JSON file which has two different representations in this form:
It shows that it has two dimensions array and three dimensions arrays representing ways in the same attribute.
This makes the file is hard to serialize.
I'm relatively new to Rust, and even more so to serde, so I'm having trouble finding out if this is even doable.
I have a JSON file which has two different representations in this form:
"coordinates": [ [ [ 121.423364, 24.9913596 ], [ 121.4233327, 24.9912977 ], ] ]
and this:
"coordinates": [ [ 121.4472492, 25.0052053 ], [ 121.4466457, 25.0028547 ] ]
It shows that it has two dimensions array and three dimensions arrays representing ways in the same attribute.
This makes the file is hard to serialize.
Below is the code that I implement
And I have trouble in
struct Geometry
which serialize the file of coordinates.So does there have any ways that I can deal with this kind of form?
The text was updated successfully, but these errors were encountered: