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 6156493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:37:11+00:00 2026-05-23T20:37:11+00:00

I am generating a data expressed as a Python dictionary which is dumped using

  • 0

I am generating a data expressed as a Python dictionary which is dumped using simplejson via url which is in this format.

{"2": "London", "3": "Tokyo", "4": "Sydney"}

I am using $.get and storing into a variable data.
However eval(data) does not generate an Associative Array. Actually throws up an error. What is the problem? What is the solution?

Edit: I have shared the code
http://dpaste.com/570901/

  • 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-23T20:37:11+00:00Added an answer on May 23, 2026 at 8:37 pm

    eval is slow, inefficient and hard to debug. Don’t use it.

    Have your script output an application/json content-type header, and jQuery will convert JSON to a JS object automatically.

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

Sidebar

Related Questions

Thanks for reading this. I am dynamically generating some data which includes a select
I am generating a file which contains data like this. 78,45,New things,200, Number of
i am generating *.reg file using code which will have some important data. and
i'm generating this code $.ajax({ url: '/orders/modify/action/', type: POST, dataType: 'json', data: 'id='+10+ '&commento='+$('#shop_order_status_history_comments').val()+
I'm using the PRTools MATLAB library to train some classifiers, generating test data and
I am generating data in a grid panel using json store. I have to
i am using a data grid in flex and i am generating data from
I'm generating data at a rate of 4096 bytes every 16.66ms. This data needs
I am using XML Data Mapping and having a problem with generating complex types
I am generating editable data grids from tables using dynamic data, however, i am

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.