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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:57:00+00:00 2026-05-26T11:57:00+00:00

I got a JSON converted from XML. So, how can I get json.@attribute.something .

  • 0

I got a JSON converted from XML.

So, how can I get json.@attribute.something.

@ <– this one will make javascript error

I use Javascript.

  • 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-26T11:57:00+00:00Added an answer on May 26, 2026 at 11:57 am

    Making a great exercise of imagination, I suppose you’ve used jQuery to download some JSON through AJAX and you have an object with a key called “@attribute”, such as this:

    var foo = {
        "@attribute": 33
    }
    

    You just need to use square brackets:

    console.log(foo["@attribute"])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a small problem . I have this date format from .net json
Here I got from JSON [{photo:null}] and I use this code NSMutableArray *jPhoto =
I've got the JSON coming back like this: { responseData: [{ responseData: { translatedText:
I've got some JSON data, but it's all on one line. Does anyone know
I got json data from the server by ajax: request.responseText=[{name:xxx},{name:xxx},{name:xx}]. Then I use the
From Scottgu's post i got the code to Serialize a collection to JSON object.(i)How
I'm working on android app and trying to get created_time from facebook JSON .
I've got a json document that looks like this: { default: [auto, 1.0] }
I've got a json file included in my javascript that defines a variable that
I got the following date format that I get from an API (Yes 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.