Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/Parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ function _get_parsercontext(dicttype, inttype, allownan, null)
end

"""
parse{T<:Associative}(str::AbstractString;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan::Bool=true,
null=nothing)
parse(str::AbstractString;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan::Bool=true,
null=nothing) where {T<:Associative}

Parses the given JSON string into corresponding Julia types.

Expand All @@ -456,11 +456,11 @@ function parse(str::AbstractString;
end

"""
parse{T<:Associative}(io::IO;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan=true,
null=nothing)
parse(io::IO;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan=true,
null=nothing) where {T<:Associative}

Parses JSON from the given IO stream into corresponding Julia types.

Expand Down