Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to read sub level json image src #233

Open
eraframework opened this issue May 15, 2020 · 0 comments
Open

how to read sub level json image src #233

eraframework opened this issue May 15, 2020 · 0 comments

Comments

@eraframework
Copy link

eraframework commented May 15, 2020

"images": [
{
"id": 14,
"date_created": "2020-05-15T15:48:39",
"date_created_gmt": "2020-05-15T15:48:39",
"date_modified": "2020-05-15T15:48:39",
"date_modified_gmt": "2020-05-15T15:48:39",
"src": "https://trolly.app/wp-content/uploads/2020/05/Baby-Products.png",
"name": "Baby-Products",
"alt": "",
"position": 0
}
],

above is my json file
i want to get images from above json format, below code is only working if json file is like this
[
{
"image":"data/images/10-24102B.jpg",
}
]

but how to fetch image if json file is like above.
.................code start....................

................. code end .......................
i tried


but not working.
kindly help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant