Skip to content

Commit faaf0ae

Browse files
committed
totaly remove JSON2
1 parent db07aa6 commit faaf0ae

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ DashTable = "1b08a953-4be3-4667-9a23-f0e2ba4deb9a"
1212
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1313
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
1414
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
15-
JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3"
1615
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
1716
MD5 = "6ac74813-4b46-53a4-afec-0b5dc9d7885c"
1817
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
@@ -31,7 +30,7 @@ DashTable = "5.0.0"
3130
DataStructures = "0.17, 0.18"
3231
HTTP = "0.8.10, 0.9"
3332
JSON = "0.21"
34-
JSON2 = "0.3"
33+
JSON3 = "1.9"
3534
MD5 = "0.2"
3635
PlotlyBase = "0.8.5, 0.8.6"
3736
YAML = "0.4.7"

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,5 @@ Be careful - in Dash.jl states come first in an arguments list.
189189

190190
### JSON:
191191

192-
I use JSON2.jl for JSON serialization/deserialization, so in callbacks all JSON objects are `NamedTuples` rather than dictionaries. Within component properties you can use both `Dict` and `NamedTuple` for JSON objects.
193-
192+
I use JSON3.jl for JSON serialization/deserialization.
194193
Note when declaring elements with a single properly that `layout = (title = "Test graph")` is not interpreted as a `NamedTuple` by Julia - you'll need to add a comma when declaring the layout, e.g. `layout = (title = "Test graph",)`

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ Be careful - in Dashboards states came first in arguments list
174174

175175
### json:
176176

177-
I use JSON2 for json serialization/deserialization, so in callbacks all json objects are NamedTuples not Dicts. In component props you can use both Dicts and NamedTuples for json objects. But be careful with single property objects: `layout = (title = "Test graph")` is not interpreted as NamedTuple by Julia - you need add comma at the end `layout = (title = "Test graph",)`
177+
I use JSON3 for json serialization/deserialization. In component props you can use both Dicts and NamedTuples for json objects. But be careful with single property objects: `layout = (title = "Test graph")` is not interpreted as NamedTuple by Julia - you need add comma at the end `layout = (title = "Test graph",)`

src/Dash.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Dash
22
using DashBase
3-
import HTTP, JSON2, JSON3, CodecZlib, MD5
3+
import HTTP, JSON3, CodecZlib, MD5
44
using Sockets
55
using Pkg.Artifacts
66

0 commit comments

Comments
 (0)