Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - Parsers ${{ matrix.parsers }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -23,13 +23,21 @@ jobs:
- windows-latest
arch:
- x64
parsers:
- '3'
include:
- os: macOS-latest
arch: aarch64
version: 1
parsers: '3'
- os: ubuntu-latest
arch: x86
version: 1
parsers: '3'
- os: ubuntu-latest
arch: x64
version: 1
parsers: '2.8.8'
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
Expand All @@ -38,6 +46,8 @@ jobs:
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- name: Pin Parsers ${{ matrix.parsers }}
run: julia --project=. -e 'using Pkg; Pkg.add(name="Parsers", version="${{ matrix.parsers }}"); Pkg.pin("Parsers")'
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v7
Expand Down
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "JSON"
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
version = "1.7.1"
version = "1.8.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand All @@ -20,10 +20,10 @@ JSONArrowExt = ["ArrowTypes"]
[compat]
Arrow = "2.8.0"
ArrowTypes = "2.2"
Parsers = "1, 2"
Parsers = "2.8.8, 3"
PrecompileTools = "1"
StructUtils = "2.8.4"
julia = "1.9"
julia = "1.10"

[extras]
Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/reading.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The core JSON parsing machinery is hence built around having an `AbstractVector{

Each entrypoint function first calls [`JSON.lazy`](@ref), which will consume the JSON input until the type of the next JSON value can be identified (`{` for objects, `[` for arrays, `"` for strings, `t` for true, `f` for false, `n` for null, and `-` or a digit for numbers). [`JSON.lazy`](@ref) returns a [`JSON.LazyValue`](@ref), which wraps the JSON input buffer (`AbstractVector{UInt8}` or `AbstractString`), and marks the byte position the value starts at, the type of the value, and any keyword arguments that were provided that may affect parsing. Currently supported parsing-specific keyword arguments to [`JSON.lazy`](@ref) (and thus all other entrypoint functions) include:

- `allownan::Bool = false`: whether "special" float values shoudl be allowed while parsing (`NaN`, `Inf`, `-Inf`); these values are specifically _not allowed_ in the JSON spec, but many JSON libraries allow reading/writing
- `allownan::Bool = false`: whether "special" float values shoudl be allowed while parsing (`NaN`, `Inf`, `-Inf`); these values are specifically _not allowed_ in the JSON spec, but many JSON libraries allow reading/writing. When `true`, untyped numbers are parsed as `Float64`. A requested fixed-width integer type of up to 128 bits is parsed exactly from the number token
- `ninf::String = "-Infinity"`: the string that will be used to parse `-Inf` if `allownan=true`
- `inf::String = "Infinity"`: the string that will be used to parse `Inf` if `allownan=true`
- `nan::String = "NaN"`: the string that will be sued to parse `NaN` if `allownan=true`
Expand Down
Loading
Loading