Demo news data json for android
Here is a sample JSON data for a news app in Android:
{
"news": [
{
"id": 1,
"title": "Breaking News: NASA Discovers New Planet",
"description": "NASA scientists have made a groundbreaking discovery, announcing the discovery of a new planet in our solar system.",
"image": "https://example.com/news1.jpg",
"date": "2022-02-20",
"author": "John Doe",
"category": "Science"
},
{
"id": 2,
"title": "New Study Reveals Link Between Social Media and Mental Health",
"description": "A recent study has found a strong correlation between social media use and mental health issues.",
"image": "https://example.com/news2.jpg",
"date": "2022-02-15",
"author": "Jane Smith",
"category": "Health"
},
{
"id": 3,
"title": "Stock Market Plunges Amid Economic Uncertainty",
"description": "The stock market has experienced a significant decline due to concerns over the global economy.",
"image": "https://example.com/news3.jpg",
"date": "2022-02-10",
"author": "Bob Johnson",
"category": "Business"
},
{
"id": 4,
"title": "New Music Release: Album of the Year",
"description": "The highly anticipated album from popular musician has finally been released.",
"image": "https://example.com/news4.jpg",
"date": "2022-02-05",
"author": "Emily Chen",
"category": "Entertainment"
}
]
}
This JSON data contains an array of news objects, each with the following properties:
id
: a unique identifier for the news articletitle
: the title of the news articledescription
: a brief summary of the news articleimage
: the URL of the image associated with the news articledate
: the date the news article was publishedauthor
: the author of the news articlecategory
: the category of the news article (e.g. Science, Health, Business, Entertainment)
You can use this JSON data in your Android app to display a list of news articles, with each article having its own details such as title, description, image, date, author, and category.