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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:53:57+00:00 2026-06-14T18:53:57+00:00

I am trying to convert a javascript array to a json string to store

  • 0

I am trying to convert a javascript array to a json string to store in my database, which plots the co-ordinates and such drawn onto a html5 canvas element.

My problem is that with some values, they seem to be being abbreviated or something by the JSON.stringify function. For example, I have a bunch of data that looks something like this:

[340,154,"dragstart",6,"db3733"]

But sometimes, this will happen to some values (usually when I ‘stringify’ alot of data):

[311,...6,"db3733"]

Why is this happening?

  • 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-14T18:53:58+00:00Added an answer on June 14, 2026 at 6:53 pm

    console.log (and the like) do often display ellipsis instead of very long strings or arrays when inspecting an object, yet usually you can expand them (by clicking on + or something).

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

Sidebar

Related Questions

Possible Duplicate: Convert Javascript Array to JSON I am trying to figure out how
I trying to build a JavaScript function which will grab a JSON encoded array
Background : I'm trying to convert some JavaScript code which uses the the Crossfilter
I'm trying to convert date formats in javascript. I get a string from a
I am trying in javascript to convert an integer (which I know will be
i m trying to convert php mysql_fetch_row result into javascript array so i write
I'm trying to convert a floating point to byte array/stream using javascript. My javascript
I am trying to convert a comma separated string into an array using the
I'm trying to convert a Javascript array in Java to a Java array. I'm
In JavaScript I am trying to convert an array of objects with similar keys:

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.