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

  • Home
  • SEARCH
  • 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 8478483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:45:30+00:00 2026-06-10T18:45:30+00:00

I have a valid JSON shown below { employees: [ { firstName: Peter, lastName:

  • 0

I have a valid JSON shown below

{
    "employees": [
        {
            "firstName": "Peter",
            "lastName": "Jones"
        }
    ]
}

Please let me know how can i associate this with String in Eclipse IDE

Means i want to do

String json = "{
    "employees": [
        {
            "firstName": "Peter",
            "lastName": "Jones"
        }
    ]
}"

but its giving an compilation error , telling String literal is not properly closed by a double-quote

  • 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-06-10T18:45:31+00:00Added an answer on June 10, 2026 at 6:45 pm

    If the JSON string was pasted from somewhere, you might want to select the “Escape text when pasting string” option. Then you won’t have to escape by hand which can be tideous.

    http://tarlogonjava.blogspot.sg/2008/04/cut-and-paste-of-strings-in-eclipse.html

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

Sidebar

Related Questions

I have a JSON array that I know is valid. The array shows all
I have written a JSON parser that takes any valid json string and generates
If I have a string where there is a valid JSON substring like this
I am using FullCalendar to show some events. Basically I have a valid json
I have a string which is in valid Json format and it looks like
I have a login form where the user can login only with the valid
So, this should be simple in my mind... I have a valid JSON string
I have an aspx page that returns valid JSON - however when called via
I have following valid JSON to Parse: [{name:kkkk,empid:55628,address:mumbai,mobile:9525878558},{name:xtreme,empid:20,address:stripes,mobile:9999597},{name:xtreme,empid:20,address:stripes,mobile:9699597},{name:xtreme,empid:20,address:stripes,mobile:9699597},{name:xtreme,empid:20,address:stripes,mobile:9699597},{name:xtreme,empid:20,address:stripes,mobile:9689597},{name:xtreme,empid:20,address:stripes,mobile:9699597},{name:xtreme,empid:20,address:stripes,mobile:9689597},{name:xtreme,empid:20,address:stripes,mobile:9699597},{name:vx,empid:96,address:addre,mobile:9999596},{name:vxx,empid:96,address:addre,mobile:96899},{name:vx,empid:96,address:addre,mobile:9689596}] After parsing this I want to
I have a string in Python, I want to know if it is valid

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.