#JSON reader

4 messages · Page 1 of 1 (latest)

uncut sail
#

Hi!
Is there any integration that allows you to create entities from information from JSON files?
The idea is that one peraon publishes a schedule with scheduled video on the web in the form of a JSON file. This is what the sample content of this file looks like:

[
  {
    "date": "2025-03-01",
    "time": "16:00",
    "title": "EXAMPLE TITLE",
    "stream": false,
    "new": false,
    "final": false,
    "double": false
  },
  {
    "date": "2025-03-01",
    "time": "18:00",
    "title": "EXAMPLE TITLE 2",
    "stream": false,
    "new": false,
    "final": false,
    "double": false
  },
  {
    "date": "2025-03-02",
    "time": "16:00",
    "title": "EXAMPLE TITLE 3",
    "stream": false,
    "new": false,
    "final": false,
    "double": false
  },
  {
    "date": "2025-03-02",
    "time": "18:00",
    "title": "EXAMPLE TITLE 4",
    "stream": false,
    "new": false,
    "final": true,
    "double": false
  }
]

As you can see, a list of two titles is published for each day. Is it possible to make an entities that will display today's two titles?

rare bolt
#

It only reads the last line of the file, so you'd need to compact the JSON or format it differently.