DEV Community

Chitransh Soral
Chitransh Soral

Posted on

DeadLock - Parsing JSON

Hello guys, I want to start off with a huge thanks to Niels Lohmann for the amazing json library and point to point documentation. With his help I am now able to easily parse the JSON response, and the intuitive syntax is helping me extract contents from JSON in C++ just like I would do in python.

Today I didn't do much in the code perspective, instead I tried to understand the responses from Pypi while sending requests. When I queried a simple library like pandas, I was at first shocked to see the ~43k line response which alone was around 37 MB (Yes that is 37 MegaBytes). I have to first extract the latest version from the JSON, which at first, I thought can be done by comparing the version numbers. But it has a problem, some versions of pandas are like "1.4.0rc0" that will return error if compared traditionally and this is not only with pandas, but I also saw this naming scheme with other libraries. Therefore, I'll have to design another way that extracts the latest version. Also, I saw that Pypi also returns the urls for downloading packages for all operating systems. So, I also have to check which OS will the users use and then download the correct wheel package and build it.

This all will take a lot of time, but I am confident that I will be able to give it the time it deserves and create something good for all of us.

Thanks! 🫡

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Dynatrace image

Highlights from KubeCon Europe 2025

From platform engineering to groundbreaking advancements in security and AI, discover the KubeCon Europe 2025 insights that are shaping the future of cloud native observability.

Learn more

AWS Security LIVE! From re:Inforce 2025

Tune into AWS Security LIVE! streaming live from the AWS re:Inforce expo floor in Philadelphia from 8:00 AM ET-6:00 PM ET.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️