So yeah i did write JSON parser from scratch instead just using GSON or any library.
At first it was for only learning purpose to see how things work and what can be better than implementing by yourself. I knew that telegram helps us make our own bots and i wanted to make my own too.
But it was also too easy to learn anything by just making bot so i decided to not use Any Dependencies or framework or anything that works under the hood , I wanted to see full process and how it works.
So including JSON parser to Telegram API client and PDF converter. I wrote whole structure by hand, Finding out how to extract file id, name and all the detail manually from raw JSON string. It was indeed headache to deal with it but if it doesn't cause headache then what are we even doing.
This is the final product.
What did i learn? well of course I did not memorize everything but it indeed give better understanding of how api works and how to use API responses, How to extract Images from PDF and send it back to users.

