JSON.jl icon indicating copy to clipboard operation
JSON.jl copied to clipboard

Add eof check for streaming parser

Open wardlem opened this issue 3 years ago • 1 comments

Summary

Adds an end of file check to the streaming parser.

Motivation

# This works
JSON.parse("123")

# This also works
JSON.parse(IOBuffer("123\n"))

# This currently breaks
JSON.parse(IOBuffer("123"))

Fixes #314

wardlem avatar May 07 '21 14:05 wardlem

Is this issue resolved? I also got an error that seems to be related to this one:

Unexpected end of input │ ...when parsing byte with value '0'

pitipatw avatar Apr 20 '23 07:04 pitipatw