Skip to content

Commit 072d442

Browse files
authored
Merge pull request #11 from adafruit/add_comment
add back ignore text comment
2 parents f634ea8 + 28d94d1 commit 072d442

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_json_stream.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def next_value(self, endswith=None):
128128
# start a string
129129
if char == ord('"'):
130130
in_string = True
131+
132+
# skipping any closing or opening character if in a string
133+
# also skipping escaped characters (like quotes in string)
131134
elif ignore_next:
132135
ignore_next = False
133136
elif char == ord("\\"):

0 commit comments

Comments
 (0)