gaybro8777 / JSON.jl

JSON parsing and printing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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

About

JSON parsing and printing

License:Other


Languages

Language:Julia 100.0%