Thanks for the answer
Can you elaborate on why JSON files are saved in this format? When I open a javascript or other file with code in it, new lines don’t display as \n
I understand what escape characters are and why they’re used - but why are they used inside JSON files, and not HTML files (for example) ?
Escape characters are necessary for formatting strings in JavaScript. JSON is JavaScript Object Notation. In order for the code to show up in the editor window broken into lines with indentation, the escape characters need to be there. Otherwise it would all be one long line.
Hi dude, I was dealing with this task for a friend, and as I was typing up my notice of creating a tool for this, your topic popped up. Here ya go:
Always nice to know that this isn’t ruled by bots, and get a nice help once in a while, thanks vipatron
You’re welcome. I really hope you don’t mean @ArielLeslie . Nobody, not even Google, is that good at the Turing test (yet).
ye ye i know, it’s quite helpfull, just a bit annoying when you are desperate for an answer and gives you something completely unrelated arghhh
Fair enough. I’m redoing the React challenges. When I get bored later today, I’m planning on adding new functionality that lets you:
- upload the .json file from your computer
- Save the first file in the .json under the name provided (although maybe a checkbox to allow the option of *.json => *.[js|html|css]
That sounds awesome,
Atm i’m just saving it to a copy of gitbook which saves it to a md that i can use to search for answers…
So having this problem just ended up me having a better documentation structure although having something to easily parse it makes my life way easier if i ever need to do it. thanks
Also regarding Ariel, thank god she can’t pass the turing test otherwise we would have to start taking cover in zion or something…
In the event that the JSON record includes the difficulties you need, at that point, you have to locate the key for the test you’re occupied with. The esteem will be the arrangement code as a string. When you parse the string the majority of the got away characters will be exhibited as their parsed partners.
Read Ecchi Manga
@Elthask For formatting JSON you might also try a text editor extension that can prettify the code. Here’s a link to an extension I have installed on Atom:
Thank you so much.
I was struggling with this and this solves the issue perfectly!
So over on the slack learning buddies group, the question came up as well. I wrote a little codepen that will allow you to upload your downloaded file, and parse out the index bit, displaying it in a readable format.
Hope it helps.
Sweet! That will be a welcome change.