Releases: MichaelBrunn3r/ArduinoJStream
Releases · MichaelBrunn3r/ArduinoJStream
Fixed bug in 'JsonParser::skipWhitespace'
Method read last char even if it was not a whitespace character. Was only noticeable when reading a stream containing UTF-8 sequences
JsonParser now only takes stream references as argument
'JsonParser::JsonParser()' and '::parse' now only take a Stream reference as an argument
'JsonParser::parseIntArray' now ignores negative numbers depending on type
'::parseIntArray' now automatically ignores negative integers depending on the type
Fixed bug in 'JsonParser::readString'
Fixed major bug in 'JsonParser::readString' Method was parsing chars as if they were numbers (i.e 'a' -> "97")
Replaced 'JsonParser::enterCollection'
Replaced 'JsonParser::enterCollection' with '::enterArr' and '::enterObj'
Fixed bug in 'JsonParser::readString' and '::skipString'
When the methods were checking for the opening '"' of the String, they didn't peek, but read!!! the Stream
Simplified usage of 'JsonParser::next'
'JsonParser::next' doesn't exit current obj/arr anymore Usage '::next', and methods using it, was not intuitive and confusing. Change has only minimal impact on performance
Changed return type of 'JsonParser::nextKey' to bool
Instead of returning the key, the method stores it in a buffer and indicates if a key exists. Previously it was impossible to know if the method failed ( because "" is a valid Json key)
JsonParser::strcmp
Added 'JsonParser::strcmp' Split 'JsonParser.cpp' into 'JsonParserImpl.cpp' and 'JsonParserNav.cpp'
UTF-8 support
Added UTF-8 support