Index: ../../incubator-johnzon/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../../incubator-johnzon/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java	(revision b7948d5174018ddf04c95a4abd8107720d20155e)
+++ ../../incubator-johnzon/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java	(revision )
@@ -266,11 +266,20 @@
             }
 
             try {
-                availableCharsInBuffer = in.read(buffer, 0, buffer.length);
-                if (availableCharsInBuffer <= 0) {
+                // make sure that we have at least the next char
+                int value = in.read();
+                if(value == -1) {
+                    availableCharsInBuffer = 0;
                     return EOF;
                 }
-
+                // try to fill up the buffer for the next iteration.
+                availableCharsInBuffer = in.read(buffer, 1, buffer.length - 1);
+                if(availableCharsInBuffer == -1) {
+                    availableCharsInBuffer = 1; // we have at least the "value" above
+                } else {
+                    availableCharsInBuffer += 1; // adding the "value" above to the list of available chars
+                }
+                buffer[0] = (char) value;
             } catch (final IOException e) {
                 close();
                 throw uexio(e);
\ No newline at end of file
