Skip to content

Commit

Permalink
Document indentation argument on the front page
Browse files Browse the repository at this point in the history
Took me a few minutes reading code to figure out how to do this
  • Loading branch information
ihnorton committed Feb 14, 2018
1 parent 9872767 commit 0081227
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ JSON.print{T, N}(io::IO, v::Array{T, N})
Writes a compact (no extra whitespace or indentation) JSON representation
to the supplied IO.

```julia
JSON.print(a::Associative, indent)
JSON.print(io::IO, a::Associative, indent)
```

Writes a JSON representation with newlines, and indentation if specified. Non-zero `indent` will be applied recursively to nested elements.


```julia
json(a::Any)
```
Expand Down

0 comments on commit 0081227

Please sign in to comment.