[go: up one dir, main page]

Forum SettingsEpisode Information
Forums
New
Dec 18, 2025 3:22 PM
#1

Online
Jan 2020
1145
How was she able to get a parsing error because of an apostrophe, when you wrap strings with quotation marks in JSON?
Also, what did she mean by "... reprogram it to allow apostrophes"? You just escape them with \, no need to reprogram:
JavaScript

var test_string = '\nI really like using the \' apostrophe sign.\nIn fact, here\'s an entire quotation using it:\n\'Here\'s a proverb – you\'re a twerp!\'\n';
console.log(test_string);

Output:
"
I really like using the ' apostrophe sign.
In fact, here's an entire quotation using it:
'Here's a proverb – you're a twerp!'
"


I can assume that there might be a scenario in which you validate the input from a text field, and you might have to explicitly replace "'" with "\'" when submitting the form, but an item name is a field in a certain class. Do you usually instantiate new game objects dynamically? Probably not...

But then again, in C++/C# (the most used in game development itself, not scripting, so let's count Python out) you can't even wrap a string in apostrophes...



I mean, I've seen characters in video games "hacking" military hardware by bashing F11 and F12, but I'm genuinely curious about this one...
RudeRedisDec 18, 2025 3:28 PM
Dec 19, 2025 4:52 PM
#2
Offline
Mar 2018
398
To me, it's just another instance of an author getting technical about something they don't understand in a way that immediately falls apart under scrutiny.

More topics from this board

Poll: » Let's Play: Quest-darake no My Life Episode 12 Discussion ( 1 2 )

Stark700 - Dec 17, 2025

50 by yhagni »»
Feb 16, 6:08 AM

Poll: » Let's Play: Quest-darake no My Life Episode 3 Discussion

Stark700 - Oct 15, 2025

44 by 1List2RuleThemAl »»
Feb 8, 6:41 PM

Poll: » Let's Play: Quest-darake no My Life Episode 1 Discussion ( 1 2 3 )

Stark700 - Oct 1, 2025

100 by 1List2RuleThemAl »»
Feb 8, 6:17 PM

Poll: » Let's Play: Quest-darake no My Life Episode 7 Discussion

Stark700 - Nov 12, 2025

21 by MartaNara21 »»
Jan 13, 4:06 AM

Poll: » Let's Play: Quest-darake no My Life Episode 11 Discussion

Stark700 - Dec 10, 2025

31 by Camoboi1 »»
Jan 8, 11:27 AM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login