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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:22:06+00:00 2026-06-15T03:22:06+00:00

Im storing a person object as JSON in my SQLite database. The table will

  • 0

Im storing a person object as JSON in my SQLite database. The table will have few 1000 records of person objects. What i need is to query person based on the “name” attribute.

After investigation i figured out using GLOB method of SQLite to perform a RegEx kind of search in the JSON elements.

My Sample JSON is something like this.

{"name":"john","age":"22","father-name":"jackson"}

Now i want a RegEx matcher to get me all the records that matches a part of the SubString provided with the name attribute in JSON. And it should be case insensitive too.

For Ex: “ohn” search should fetch me john’s record.

  • 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-15T03:22:08+00:00Added an answer on June 15, 2026 at 3:22 am

    If you do want to go down the regex route the following will extract the record:

    /\{"name":"\w*ohn\w*[^\}]+\}/i
    

    This will match each of these:

    {"name":"john","age":"22","father-name":"jackson"}
    {"name":"john","age":"22","father-name":"johnson"}
    {"name":"johnny","age":"22","father-name":"smith"}
    

    but not:

    {"name":"fred","age":"22","father-name":"hall"},
    {"name":"mike","age":"22","father-name":"johnson"}
    {"name":"bob","age":"22","father-name":"todd"}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to serialize this object to JSON String public class Person {
I have an object that has a child collection: class Person { public string
Let's say we have a collection of Person objects class Person { public string
I'm using ASP.NET with C# 2.0. I have created some objects for a database
I'm using fastJson library to deserialize a json string to a Person object. The
Suppose I have a json object that looks like: { id: 1, name: john
I'm using spring 3.1.2 and I need to parse a json object into POJO.
For example, I have two object, which a the class, Person. Person A: User_name:n1
Let's say I have an object: person={'name':'john Garfield'}; And I convert it to a
I have been trying to evaluate GWT Autobean feature to decode/encode JSON object to

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.