Closed inhuman closed 2 years ago
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
issue not resolved
Problem/Motivation
I try to use flux for query from influxdb and one of fields is json and i want to parse it
Flux guide says that i must use "experimental/json" package
For testing i use this query
`import "experimental/json"
from(bucket: "homeassistant/autogen") |> map( fn: (r) => { jsonStr = "{\"test\": \"123\"}"
data = json.parse(data: bytes(v: jsonStr)) return { str: data } } ) |> yield()`
When i do this, i receive the error
500 Internal Server Error: type error 1:1-1:27: unknown import path: "experimental/json"
But package "experimental" works fine
Expected behavior
Package "experimental/json" imports and works
Actual behavior
500 Internal Server Error: type error 1:1-1:27: unknown import path: "experimental/json"
Steps to reproduce
from(bucket: "homeassistant/autogen") |> map( fn: (r) => { jsonStr = "{\"test\": \"123\"}"
data = json.parse(data: bytes(v: jsonStr)) return { str: data } } ) |> yield() `
Proposed changes
May be need to update grafana version