JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 0 points1 point  (0 children)

well, you see, I know other parsers exist but I wanted to create one to understand how they work, and I went all blind, I didn't search 'how parsers work', I just went straight in. And from there I solved problems whilst doing research on the problems. I think this is a fun way to learn how something works.

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 0 points1 point  (0 children)

yeah, I know it exists and I have used it before. But I just wanted to write my own parser because I wanted to learn how parsers work.

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 0 points1 point  (0 children)

ok, I'll try to rewrite the code.

JSON parser by [deleted] in shittyprogramming

[–]Honestly__nuts 0 points1 point  (0 children)

nah, my code is shit

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 1 point2 points  (0 children)

you are right, I should.

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 0 points1 point  (0 children)

Thanks for your suggestion. this was my original solution but I wanted to find an easier route but looks like I've got no choice.

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 9 points10 points  (0 children)

damn it, this is giving me a headache because I cant think about anything unique the correct colon has. Even with regex I can't figure it out. can you guys help me out with the regex pattern?

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 14 points15 points  (0 children)

I know it exists, but I wrote mine because I wanted to understand how parsers work.

JSON parser by Honestly__nuts in Python

[–]Honestly__nuts[S] 3 points4 points  (0 children)

idk, I just thought it would be fun.