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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:10:55+00:00 2026-05-16T23:10:55+00:00

Is it possible to store objects in globalStorage or is it only capable of

  • 0

Is it possible to store objects in globalStorage or is it only capable of strings?

One option would be to “jsonify” an object and then store it but I wondered if theres a better way?

var host = location.hostname;

globalStorage[host].test = {
 name1: 'Ben',
 name2: 'John'
};

globalStorage[host].test2 = 'hello';

alert(globalStorage[host].test.name1); //undefined
alert(globalStorage[host].test2); //hello
  • 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-16T23:10:56+00:00Added an answer on May 16, 2026 at 11:10 pm

    No, unfortunately data is only stored in globalStorage as strings.

    you could take a look at the database object, if your target browser platform supports it.

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

Sidebar

Related Questions

I would like to store Python objects into a SQLite database. Is that possible?
Possible Duplicate: How would you compare jQuery objects? I'm using jQuery to store the
I understand it is possible to store images in Databases as Binary large objects.
I want to store some objects and then be able to retrieve them later
Is it possible to store a Date object using SharedPreferences ? Actually in my
Is it possible to store different objects that have been extended from the same
Is it possible to store a bunch of objects by their base class in
I have a page that displays two objects and then the user picks one
Is it possible to store objects in the video-card memory instead of the ram?
Is it possible to store multiple objects for a single index in an NSArray?

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.