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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:37:03+00:00 2026-05-22T15:37:03+00:00

Good morning folks, I’m just that beginner in json, I have a formated data

  • 0

Good morning folks,

I’m just that beginner in json, I have a formated data (array) encoded and sent from a php file, the only thing I want is how to get this data and alert it to be simple??

My object sent from the php file is like:
{"stat":"opened","do":"close"}
I found the best way to do so, var obj = jQuery.parseJSON(???)but really can’t get it work and Google does not want to help me this time !!

Edit: The json object received from a post response:$.post("page.php",{},function(data){/*Here I should pars data and act with*/});

Very glad if you support me in this issue!
Regards.

  • 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-22T15:37:04+00:00Added an answer on May 22, 2026 at 3:37 pm

    If you have jQuery, you just pass the JSON string to that $.parseJSON(). The return value is the native object.

    var obj = jQuery.parseJSON('{"stat":"opened","do":"close"}');
    console.log(obj.stat, obj.do);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Morning All, I have an Objective C question that is coming from JavaScript.
Good morning gang. I have a jQuery Datepicker object that is prepoulated using a
Good Morning, I have copied this code from somewere <script type=text/javascript> $(function() { setInterval(rotateImages(),
Good morning. I have a modal JQuery dialog that on Open calls and loads
Good Morning, I have a SharePoint site that I've been trying to fix up
Good morning, folks. I have a question here. I have three select. Brings first
Good morning experts, I have an array which contain integer numbers, and I have
Good morning, I have a .Net 2.0 runtime DLL that I am trying to
Good morning, guys. I was just thinking about the small PHP crawler, that could
Good Morning, I've written the following stored procedure that searches for records that have

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.