find data in JSON !! - Forum

Forum Navigation
You need to log in to create posts and topics.

find data in JSON !!

Hi to allll

I want to search with a variable in the JSON files.

my file is :

{
    "data": [
        {
            "name": "joseph",
            "age": "29",
            "number": "8427",
            "nation": "franch"
        },
        {
            "name": "younes",
            "age": "23",
            "number": "609",
            "nation": "german"
        }
    ]
}

When I search "joseph" , show  :

name : joseph
age : 29
number : 8427
nation : "franch

and when search "609" , show :

 name : younes
age : 23
number : 609
nation : german

 

regards

 

 

 

@yasin, take a look here:

https://visualneo.com/forum/topic/arraysearch

Regards.

YASIN has reacted to this post.
YASIN

sorry, my problem was not resolved

my json file is here : yasinthy.ir/VisualNeoWEB/aa.json

How do I do that? How do I search?

@yasin it's exactly the same. You just need to parse the JSON string.
Take a look at the attached sample app.

Regards.

Uploaded files:
  • You need to login to have access to uploads.
YASIN has reacted to this post.
YASIN

@luishp a problem !!

i need get data from link (yasinthy.ir/VisualNeoWEB/aa.json)

not by 'app event'

@yasin you need to allow CORS in your server or use a proxy. Then use the attached sample.

Uploaded files:
  • You need to login to have access to uploads.
YASIN has reacted to this post.
YASIN

oops.. yet still not works

I think there is a problem with the hosts

I think there is a problem with the hosts

It's a CORS problem