Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3332180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:39:38+00:00 2026-05-17T23:39:38+00:00

It is said here: any quotes inside the JSON have to be escaped with

  • 0

It is said here:

any quotes inside the JSON have to be
“escaped” with a backslash in front.
Otherwise, JavaScript gets confused
about which quotes we want for display
and which quotes are part of the
programming.

but in their code snippet I can’t see any escaping character is this tutorial buggy I’m confused ? :

var movielisttext = "{"movielist": ["Friday the 13th", "Friday the 13th Part 2", "Friday the 13th Part III", "Friday the 13th: The Final Chapter", "Friday the 13th: A New Beginning"]}";

My question is specifically if their article has an error or not because it amazes me that a tutorial for beginner can embed such error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:39:39+00:00Added an answer on May 17, 2026 at 11:39 pm

    What you have is JavaScript, not JSON.

    If you want JSON:

    {
        "movielist": [
            "Friday the 13th",
            "Friday the 13th Part 2",
            "Friday the 13th Part III",
            "Friday the 13th: The Final Chapter",
            "Friday the 13th: A New Beginning"
        ]
    }
    

    If you want a JavaScript object

    var movielisttext =   {
            "movielist": [
                "Friday the 13th",
                "Friday the 13th Part 2",
                "Friday the 13th Part III",
                "Friday the 13th: The Final Chapter",
                "Friday the 13th: A New Beginning"
            ]
        };
    

    If you want a JavaScript string containing the JSON:

    var movielisttext =  '{"movielist": ["Friday the 13th","Friday the 13th Part 2","Friday the 13th Part III","Friday the 13th: The Final Chapter","Friday the 13th: A New Beginning"]}';
    

    or

    var movielisttext = "{\"movielist\": [\"Friday the 13th\",\"Friday the 13th Part 2\",\"Friday the 13th Part III\",\"Friday the 13th: The Final Chapter\",\"Friday the 13th: A New Beginning\"]}";
    

    Since the data itself doesn’t include any " characters, they don’t need to be escaped as far as the JSON is concerned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Bottom in Haskell described here is said to be any computation that have errors,
I read about lexical-let's memory leak, for example here: Are there any problems with
Total noob here learning openGL and I don't have any code to post because
Here is my code: <li class=det_price> <a href=/designer/customize/278258?dpid=1>Printing</a> from $10 </li> I have about
Here , it is said that Sql Server Compact allows up to 256 connections.
Simplex algorithm is said to have exponential worst case time complexity. Yet it is
It is said here: http://msdn.microsoft.com/en-us/library/aa211599%28v=office.11%29.aspx Before the procedure will run, you must connect the
Here's the thing, I now have a working prototype of what I want and
Several security experts have said in the past that the login page should be
As title said, I want to use python_ldap to get user's password. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.