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

The Archive Base Latest Questions

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

I wanted to converted the javascript object into string so that it should work

  • 0

I wanted to converted the javascript object into string so that it should work in all the browsers

I used object.toSource(); to convert it to string. It work’s fine only in firefox.

In IE it shows

Object doesn’t support this property or method

I replaced it with JSON.stringify(object); this time i get an error as “Circular reference in value argument not supported”. I’m not sure what the problem is.

I got this output when I use object.toSource();

The jJSON data is

({test:[“456”, “Test event”, (new Date(1332131400000)), (new
Date(1332135000000)), “0”, 0, 0, “16”, 1, “Some place”,
“……………

I need to convert this JSON data into string…….

Can any one help me on this?
Thanks

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

    The toSource() method is not supported in IE; JavaScript implementations of browsers are known to be somewhat different, this is one of those cases.

    JSON can’t represent circular references. This is an example of a circular reference:

    var a = {}, b = {a: a};
    a.b = b;
    // Now I can go a.b.a.b.a.b.a.b... forever; there's no way to represent this in JSON
    

    You should probably implement your own serialization method, possibly by overriding toString(). If you want to stick with JSON, you’ll have to remove the circular reference.

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

Sidebar

Related Questions

I wanted to convert string into array of bytes . How can i do
I wanted to convert a wsdl file into java. I installed Axis2 plugin into
I want to convert a native JavaScript event object to jQuery event object. Actually
In my build (for a complex webapp), I've aggregated all the javascript into 1
I wanted to see what happened if you change the reference of an object
am new to this java world.. i just wanted to know how to convert
I wanted to extract some data from an SVG file. I know that SVG
I converted a Subversion repository to Mercurial, using the Convert extension. When I look
I wanted to scramble a String, to make it unreadable and so came up
Does jQuery provide a way to convert a selected element that is a jQuery

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.