Infinity JSONata Does Not Match try.jsonata.org

  • What Grafana version and what operating system are you using?

    • v10.1.5
  • What are you trying to achieve?

    • Parse JSON data using the backend parser JSONata that splits and selects the last part off the string value
    • Example Data
      • {
            "run": {
                "configuration": {
                    "testcase": "ctest.development"
                },
                "started": "2025-09-10T21:39:17.004459Z"
            }
        }
        
  • How are you trying to achieve it?

    • {"run":run.started,"test":$split(run.configuration.testcase,'.')[-1]}
      
  • What happened?

    • No data appears..
  • What did you expect to happen?

    • A json result like
      • {"run": 2025-09-10T21:39:17.004459Z, "test": "development"}
        
    • I get the proper result when I plug both of the above in here
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

    • None

welcome @samkarl

use

({"run":run.started,"test":$split(run.configuration.testcase,'.')[-1]})

or UQL

2 Likes

Can’t believe it was that simple! Just brackets

Thank you. :slight_smile:

1 Like