can poses really big lines (one that i found was 110 kb) , i am parsing this file line by line and using the object . interestingly enough , go stops reading file before that 110 kb line . any idea why ? and how can i fix this ?
110kb isn't big
no idea because you've not provided the code. No code - no idea.
https://gist.github.com/muhammad-davatgar/cd7713138e908bb3aae5ff201678387d
is there an error printed?
Nah, it just stops reading the file at the same line everytime
about that , by using another golang json library i found out that this is happening bcs go can't parse my json (invalid document) but the thing is , the json is actually valid , bcs python and online json editors don't seem to have any problems with it how do you think i can parse it with golang ?
it parses just fine
did you copy/paste the json or read the file ? like the code i sent earlier
Is this what you want? https://go.dev/play/p/AT_MrcSipUc
Обсуждают сегодня