achillean / shodan-python

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

ENH: Simplify JSON & Dictionary parsing logic #216

Open rmhowe425 opened 1 month ago

rmhowe425 commented 1 month 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: