achillean / shodan-python

The official Python library for Shodan
https://developer.shodan.io
Other
2.51k stars 569 forks source link

ENH: Simplify JSON & Dictionary parsing logic #216

Open rmhowe425 opened 4 months ago

rmhowe425 commented 4 months ago

There are a few places in the code where multi-conditional look-ahead logic is used to parse JSON / dictionary pairs. This logic could be simplified to improve overall readability throughout the code.

A few examples are listed below: