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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:09:08+00:00 2026-05-23T10:09:08+00:00

My Json file is: { root: { Quizsize: null, {urn:abc.com/xmlns/mona/page}page: [ {{urn:abc.com/xmlns/mona/page}nut: { {urn:abc.com/xmlns/mona/page}uttering:

  • 0

My Json file is:

    {
  "root": {
    "Quizsize": null,
    "{urn:abc.com/xmlns/mona/page}page": [
      {"{urn:abc.com/xmlns/mona/page}nut": {
              "{urn:abc.com/xmlns/mona/page}uttering": {
                "{urn:abc.com/xmlns/mona/utterance}info": null,
                "{urn:abc.com/xmlns/mona/utterance}utterance": {
                  "@lang": "fr",
                  "{urn:abc.com/xmlns/mona/utterance}ezread": {
                    "@text": "",
                    "@lang": "fr",
                    "@kind": "standard",
                    "@type": "ezread"
                  },
                  "{urn:abc.com/xmlns/mona/utterance}translation": {
                    "@text": "How much does it cost?",
                    "@lang": "en",
                    "@kind": "standard",
                    "@type": "translation"
                  },
                  "{urn:abc.com/xmlns/mona/utterance}native": {
                    "@text": "",
                    "@lang": "fr",
                    "@kind": "standard",
                    "@type": "native"
                  },
                  "{urn:abc.com/xmlns/mona/utterance}phonetic": {
                    "@text": "",
                    "@lang": "fr",
                    "@kind": "standard",
                    "@type": "phonetic"
                  },
                  "@anchor": "native"
                }
              }
            }
            ]

      }
    }

}

I need to access the @text property depending upon the value in @anchor property :

so my steps to access are:
1.load this JSON in lesson variable.
2. Get root element (lessonPages = lesson.root)
3.Now access @anchor property value through below code:
text = lessonPages[“{urn:abc.com/xmlns/mona/page}”][“{urn:abc.com/xmlns/mona/page}nut”][“{urn:abc.com/xmlns/mona/page}uttering”][“{urn:abc.com/xmlns/mona/utterance}utterance”][“@anchor”]

Now i have @anchor value in text variable which is “native”.Now how can i use text variable value to access @text in “{urn:abc.com/xmlns/mona/utterance}native”

Note:@anchor property value is not fix.It could be anything,so we need to first read it and then @text depending upon that.

  • 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-23T10:09:08+00:00Added an answer on May 23, 2026 at 10:09 am

    Its just a string. You can concatenate strings as normal.

    foo["{urn:abc.com/xmlns/mona/utterance}" + someStringVariable]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .json file sitting at the root of my site. The name
My JSON file looks like this: { strings: { keyone: abc, keytwo: def, }
Other than grabbing the package.json file at the project root is there a way
I have a json file and I assume that I do not know anyting
I have a json file exported from phpmyadmin, it looks like this(utf-8 file): [{user_email:
I have a JSON file which contains a pound symbol in it. This json
I have a JSON file which contains HTML content. I want to load it
I have a JSON file and want to parse value of variable second value
I have a generated JSON file that I would like to transform. Is there
I am parsing this JSON file (correctly, it works with the UITextFields): {longitude:[37.786793,39.388528],latitude:[-122.395416,-78.887734]} ind

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.