@mightpossibly's thread
69
@mightpossibly
ยท 2 years agoYesterday I learned that AI can output custom_json instead of just text. This is very powerful.
Example prompt: Tell me about some popular movies from 2023. Output in JSON format, and include title, genre, boxoffice number and month of release
Output:
{
"movies": [
{
"title": "Barbie",
"genre": "Comedy",
"boxOffice": 1400000000,
"releaseMonth": "July"
},
{
"title": "Oppenheimer",
"genre": "Drama",
"boxOffice": 950000000,
"releaseMonth": "July"
}
]
}
The JSON format is like getting your data in a spreadsheet instead of a paragraph. A computer can instantly:
- Sort movies by how much money they made
- Filter to show only comedies
- Calculate total earnings
- Import into movie-apps
It's like the difference between getting a grocery list on a properly formatted note vs having someone tell you the groceries in a casual conversation
No replies made yet. Would you like to be the one to do so?