KodrAus / json_str

Rust library for tidy json string literals
Apache License 2.0
5 stars 0 forks source link

Can't parse json with empty string #2

Closed KodrAus closed 7 years ago

KodrAus commented 8 years ago

This is giving a slice error, so there's an issue parsing empty strings.

KodrAus commented 8 years ago

Changing take_while1 to take_while should fix this.

While we're at it it wiuld be good to check the bytes taken during each pass and ensure they cover their contents properly.