Skip to content

aviks/JSON.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Julia 100.0%