Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 799 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 799 Bytes

#JSON parsing and printing for Julia. Build Status

##Installation

Pkg.add("JSON")

##Usage

using JSON
JSON.parse(s)
json(a)

##The API

JSON.print(io::IO, s::String)
JSON.print(io::IO, s::Union(Integer, FloatingPoint))
JSON.print(io::IO, n::Nothing)
JSON.print(io::IO, b::Bool)
JSON.print(io::IO, a::Associative)
JSON.print(io::IO, v::AbstractVector)
JSON.print{T}(io::IO, v::Array{T, 2})

Writes a compact (no extra whitespace or identation) JSON representation
to the supplied IO
json(a::Any)

Returns a compact JSON representation as a String
JSON.parse(s::String)
JSON.parse(io::IO)

Parses a JSON String into a nested Array or Dict