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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:50:58+00:00 2026-06-02T01:50:58+00:00

Good Day! In Java, is there any way to search a large JSON by

  • 0

Good Day!
In Java, is there any way to search a large JSON by keys efficiently.

My Sample JSON:

{
    "my_data": [
        {
            "id": "12",
            "message": "z1",
            "text": "hai"
        },
        {
            "id": "13",
            "message": "z2",
            "text": "get"
        },
        {
            "id": "14",
            "message": "z3",
            "text": "up"
        }
    ]
}

The ‘my_data’ JsonArray is very lengthy. As it is very large, it takes more time to search a particular word in it as:

my_data.get(index).getString("text").contains(SEARCH_STRING)

Is there any pre-defined libraries or standard technique to search efficiently?

Thank you.

  • 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-02T01:51:00+00:00Added an answer on June 2, 2026 at 1:51 am

    Since it is pure text data, you can process them with standard text search tools like Lucene, and find your entry based on that.

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

Sidebar

Related Questions

Good day! I tried using JSTL in java but there's an error: exception javax.servlet.ServletException:
Good day! I'm new in using Java DB (Derby). I want to embed it
Good day! There are a lot of questions how to store tags in DB
Good day. In my Drupal site, strange characters appear in text. Like, instead of
Good day. I know that in order to save object state in Java I
Good day to you, I use Castor to map network infrastructure into Java classes.
Good day, Anybody knows of a good java library for retrieving mime type and
Good day! I'm developping a small Java Application with NetBeans IDE that extends JFrame.
Good day. I decided to learn Java. I installed JDK and downloaded eclipse-java-helios-SR1-win32 for
Good day! I am reading a Java book about encapsulation and it mentioned the

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.