Skip to content

swadey/JSON.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#JSON parsing and printing for Julia.

##Installation

require("pkg")
Pkg.init() #If not run once before
Pkg.add("JSON")

##Usage

require("JSON")
JSON.parse(s)
JSON.to_json(a)

##The API

print_to_json(io::IO, s::String)
print_to_json(io::IO, s::Union(Integer, FloatingPoint))
print_to_json(io::IO, n::Nothing)
print_to_json(io::IO, b::Bool)
print_to_json(io::IO, a::Associative)
print_to_json(io::IO, v::Vector)

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

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

Parses a JSON String into a nested Array or Dict

About

JSON parsing and printing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%