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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:43:17+00:00 2026-05-24T23:43:17+00:00

I have the following JSON File: fields: { x1: { name: AnExteremLongName }, x2:

  • 0

I have the following JSON File:

   "fields": {
        "x1": {
            "name": "AnExteremLongName"
        },
        "x2": {
            "name": "AnotherExteremLongName"
        },
    },"row": [
        {
            "x1": {
                "name":"Some random Text"
            },
            "x2": {
                "name":"Other random Text"
            }
        }, ....

This is basically a table and to reduce the size of the Json file, the names are extraced into this x values.

I want to get the the Value of “AnExteremLongName” so I have to first get the representive X value. How can I do this without reading all varibles and store them into a “Hashmap”

So basically something like:

String getParamNamebyValue(String ParamValue);
  • 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-24T23:43:18+00:00Added an answer on May 24, 2026 at 11:43 pm

    You’ll have to iterate through the object properties using for in and compare them. But it is not really fast and I would not recommend it.

    Something like this.

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

Sidebar

Related Questions

I have follwing JSON: {mykey:[{name:Jak,interests:movies}]} and following opensocial app code: <script type=text/os-template require=mykey> <ul>
I have following json file. { id: 100001740605903, name: Mike Watshan, first_name: Mike, last_name:
I have the following json file: { segments: { externalId: 123, name: Tomas Zulberti,
I have the following json code file named: sections.json { section1: { priority: 1,
I have a configuration file in the following JSON format: { key1: value1, key2:
say I have the following json object; {'fname':'john', 'lname':'Locke'} and the following text boxes
I basically have the following flow: XML -> JSON -> Spring MVC -> jsp
I have an json output of the following (ignore the escape characters) {\sEcho\:1,\iTotalRecords\:10,\iTotalDisplayRecords\:10,\aaData\:[{\Job\:\developer\,\Name\:\kurt\},{\Job\:\plumber\,\Name\:\john\}]} which
I have the following JSON in a file menu.txt : [{ title:About, url:/about, nodes:[
I have the following JSON in a file list.txt : { bgates:{first:Bill,last:Gates}, sjobs:{first:Steve,last:Jobs} }

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.