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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:25:57+00:00 2026-05-29T05:25:57+00:00

I am having a perplexing issue with data manipulation in JavaScript. I am using

  • 0

I am having a perplexing issue with data manipulation in JavaScript.

I am using the following code in JavaScript to retrieve data from a PHP/MySQL source.

var _response = jQuery.ajax({
    url: "../data",
    async: false,
    type: "post",
    data: oParams
}).responseText;

and have confirmed that the contents of _response are

_response = '{"genus":["Some Data"],"series":[],"program":["Some Data1","Some Data2","Some Data3"]}';

However when doing the following:

var _return = jQuery.parseJSON( _response );
console.log( _return );

I end up with:

genus: [""]
program: ["", "", ""]
series: []

according to firebug. I have even gone as far as to put the string directly into jQuery.parseJSON() and log the result and still end up with an empty data structure.

Does anyone know what is going on here or what would cause this?

  • 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-29T05:25:57+00:00Added an answer on May 29, 2026 at 5:25 am

    There must be something wrong either with your jQuery file or your browser. It works fine for me in jQuery 1.7.1:

    > var x = $.parseJSON('{"genus":["Some Data"],"series":[],"program":["Some Data1","Some Data2","Some Data3"]}');
    undefined
    > x["genus"]
    ["Some Data"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having the following code: int main(int argc, char* argv[]) { // program code std::cout
Having the following code: template<typename T, typename OutStream = std::ostream> struct print { OutStream
Having the following code: #include <iostream> struct A { int x; A(){} ~A(){std::cout <<~A(<<x<<)\n;}
Having a spot of trouble with the following code. The method NextIPID() should simply
Having the following code, how can I have get receive a map, and return
Having a lot of pain with the following Perl file parsing code [last reply
Having a bit of a hairy issue when submitting data over a jquery ajax
Having a look on the PHP documentation, the following two methods of the DateTime
Having trouble using libstatgrab -- I receive the following error at compile time: libstatgrabTest.cpp:16:
Having been a PHP developer on LAMP servers for quite a while, is there

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.