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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:45:45+00:00 2026-06-08T14:45:45+00:00

I am receiving json-datas which is 100% correct formatted json data. My problem is,

  • 0

I am receiving json-datas which is 100% correct formatted json data.

My problem is,

when I run the following code it works:

var data = {"datas":[{"matts":{"active":"1","status":"off"},"config":null,"adapters":[]}}]};

console.dir(data); // it works.

but when I receive the same data on socket.io like following code, its not working:

_liveSock.on('sm', function(data)
{
    console.log(data); // I am receiving the data correctly. 
    console.dir(data); // But I cant display the data.
});

Both codes are almost the same logic, only the second one is received dynamically.

When I try to use console.dir(data); on second code, it gives this error:

there is no kind object

(btw. I am using Firefox/Firebug)

Is there another method or way to use dynamically received json datas?

Thank you!

  • 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-08T14:45:49+00:00Added an answer on June 8, 2026 at 2:45 pm

    You can’t use console.dir() until you have parsed the value.

    console.dir(JSON.parse(data));
    

    The JSON facility is not available in older browsers. You can find parsers online.

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

Sidebar

Related Questions

I am using jquery-tmpl and receiving the following JSON data, which I am using
I am receiving JSON-Data and convert it into a Dictionary. Printing the Dictionary results
I am building an Android application and I have JSON data which contains Unicode
I'm sending json-formatted data to my Java server via http requests. I've had great
I am making a web service call and receiving a JSON formatted response. After
Am receiving null from json post using jquery. see my code below in order.
I have an activity which has the following variable static CharSequence[] categories; I'm receiving
I'm receiving a JSON string in a PHP page : $JSON = $_POST['submit']; $Array
After my last question was solved the JSON I'm receiving from the server changed
I am receiving an image, title and description from a json file and i

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.