Matheus Castello (MicroHobby)
banner
microhobby.bsky.social
Matheus Castello (MicroHobby)
@microhobby.bsky.social
Embedded SW dev @toradex, Linux Kernel Dev, Brazilian, he/him. All opinions are my own.

Blog: https://microhobby.com.br/blog/
Youtube: https://www.youtube.com/matheusmicrohobby
No no, is out of the standard. The parsers should strict follow the standard.

obs: Is just what I'm hearing these days. I'm just curious to hear what Mr PowerShell would argue.
January 19, 2025 at 8:29 PM
No no, PowerShell is bad and should never exists as this accepts invalid JSON.
January 19, 2025 at 8:07 PM
If PowerShell was strict about JSON I would be able to reuse the line in Python, what was not the case. But I was expecting something not so strict, as people say that Python is easy. My bad...
January 19, 2025 at 5:24 PM
And I'm "attacking" the fan base not the community. And I really agree with @pmaris.bsky.social that using something that is not so strict is dangerous. This all thing begin because I'm migrating from PowerShell to Xonsh and I face this issue with my one line 'JSON' config for internal build.
January 19, 2025 at 5:22 PM
Are you afraid that I will delete the posts? This is my real first and unique life profile, I show my face and I take responsibility for my opinions. My JSON, or whatever it is, is not invalid and I can use it with PowerShell without any problem.
January 19, 2025 at 5:17 PM
Reposted by Matheus Castello (MicroHobby)
If you are looking for a permissive json library for python, you can try json5.
>>> import json5
>>> json5.loads("{ arch: 'arm64', torizon_arch: 'aarch64' }")
{'arch': 'arm64', 'torizon_arch': 'aarch64'}

but remember you are not doing json!
January 19, 2025 at 3:53 PM
Are you right. I'm wrong, sorry to disrespect your facts.
January 19, 2025 at 3:48 PM
I do not hate Python. I like to pay my bills.
January 19, 2025 at 1:43 PM
Is only a matter of strictness. My point, as all from Python ecosystem is new for me, is that Python is not as easy or friendly as people rush it. It sometimes is so stricness that I think I should use C/C++ instead. I'm more productive using C#, PowerShell or JS when I need something "easy".
January 19, 2025 at 1:26 PM
🤔
January 18, 2025 at 9:57 PM
And as I'm saying, is not valid for Python 🤦
January 18, 2025 at 9:38 PM
January 18, 2025 at 9:22 PM
The other thing that annoys me is how Python fans don't accept that Python and its ecosystem is not perfect and is in fact complicated.
January 18, 2025 at 7:42 PM
not for all, but for Python yes. The only thing that annoy me is that they say that Python "is straightforward and bla bla bla", but there are silly things that it insists on being so strict ...
January 18, 2025 at 3:59 PM