Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch from JSON to JSON3 dependency
I tried to keep this change as minimal as possible. Since JSON3 by default returns a `JSON3.Object` which is a `AbstractDict{Symbol, Any}`, I had to widen some signatures that before were restricted to `Dict{String, Any}`. I did not want to change GeoInterface `FeatureCollection.CRS` and `Feature.properties` types, which are `Dict{String,Any}`. Therefore I had to convert to this type at the few places where these were created. Otherwise, the `JSON3.Object` will behave similarly to a `Dict{String, Any}`, since it also supports `get` with `String` keys.
- Loading branch information
Showing
9 changed files
with
54 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name = "GeoJSON" | ||
uuid = "61d90e0f-e114-555e-ac52-39dfb47a3ef9" | ||
|
||
[deps] | ||
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
|
||
[compat] | ||
GeoInterface = "≥ 0.4.0" | ||
JSON3 = "≥ 0.1.4" | ||
julia = "≥ 1.0.0" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
GeoInterface = "cf35fbd7-0cd7-5166-be24-54bfbe79505f" | ||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
|
||
[compat] | ||
Documenter = "~0.20" | ||
Documenter = "~0.23" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ using GeoJSON | |
|
||
makedocs( | ||
sitename = "GeoJSON", | ||
format = :html, | ||
modules = [GeoJSON], | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters