From 3878b1f1f17f99f606de92ee4d911bc1d70e6728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3v=C3=A3o=20Duarte=20Sousa?= Date: Wed, 15 Jun 2016 11:16:16 +0100 Subject: [PATCH] Update use of JSON.colon to JSON.separator According to https://github.com/JuliaLang/JSON.jl/commit/bd1eb8a7e4c5e1c3cc42d912bcdf41a0603c0527 Possibly fixes https://github.com/spencerlyon2/PlotlyJS.jl/issues/46 --- src/json.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json.jl b/src/json.jl index 9a17b5e8..79752795 100644 --- a/src/json.jl +++ b/src/json.jl @@ -6,13 +6,13 @@ function JSON._print(io::IO, state::JSON.State, a::Union{Shape,GenericTrace}) JSON.start_object(io, state, true) range = keys(a.fields) if length(range) > 0 - Base.print(io, JSON.prefix(state), "\"", :type, "\"", JSON.colon(state)) + Base.print(io, JSON.prefix(state), "\"", :type, "\"", JSON.separator(state)) JSON._print(io, state, a.kind) for name in range Base.print(io, ",") JSON.printsp(io, state) - Base.print(io, "\"", name, "\"", JSON.colon(state)) + Base.print(io, "\"", name, "\"", JSON.separator(state)) JSON._print(io, state, a.fields[name]) end end @@ -32,13 +32,13 @@ function JSON._print(io::IO, state::JSON.State, p::Plot) JSON.start_object(io, state, true) # print data - Base.print(io, JSON.prefix(state), "\"data\"", JSON.colon(state)) + Base.print(io, JSON.prefix(state), "\"data\"", JSON.separator(state)) JSON._print(io, state, p.data) Base.print(io, ",") # print layout JSON.printsp(io, state) - Base.print(io, JSON.prefix(state), "\"layout\"", JSON.colon(state)) + Base.print(io, JSON.prefix(state), "\"layout\"", JSON.separator(state)) JSON._print(io, state, p.layout) JSON.end_object(io, state, true) end