Skip to content

Commit

Permalink
Merge pull request #39 from EricForgy/strinterp4vectortraces
Browse files Browse the repository at this point in the history
JSON for vectors of traces.
  • Loading branch information
sglyon committed May 16, 2016
2 parents 7cd0fa8 + d302a99 commit 3256e79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/json.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ end

# Let string interpolation stringify to JSON format
Base.print(io::IO, a::Union{Shape,GenericTrace,PlotlyAttribute,Layout,Plot}) = print(io, JSON.json(a))
Base.print{T<:GenericTrace}(io::IO, a::Vector{T}) = print(io, JSON.json(a))

# methods to re-construct a plot from JSON
_symbol_dict(x) = x
Expand Down

0 comments on commit 3256e79

Please sign in to comment.