this post was submitted on 10 Oct 2024
1 points (100.0% liked)

Godot: The open source game engine

21 readers
1 users here now

A community for discussion and support in development with the Godot game engine.

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/godot by /u/CountDhoun on 2024-10-10 17:59:58+00:00.


I'm trying to parse a handful of very long JSON files...but they have comments in them that are throwing an unexpected character error.

I've been searching around, but haven't been able to find anything regarding removing or skipping over comments inside of Godot.

Has anyone ever run into this and/or have a solution?

Edit: I think I got it sorted. I took the advice to import it as a string, delete the rows needed, and then parse it. I was expecting it to be slow, but it's quite quick and seems to be working fine. Thanks for all the replies everyone!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here