Skip to content

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Mar 15, 2024

Summary

Bump json-query library to handle nested arrays correctly.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #14976

@powersj
Copy link
Contributor

powersj commented Mar 20, 2024

To make sure I am following the impact of this change, assuming you have the following data:

"phases": [
        {
          "load": 34,
          "voltage": 231
        },
        {
          "load": 35,
          "voltage": 231
        },
        {
          "load": 36,
          "voltage": 231
        }
      ],

Currently this produces:

phases_0_load
phases_0_voltage

And with this PR:

phases_phases0_load
phases_phases0_voltage

The reason for the change is for data like:

"values": [
	[
		1,
		2,
		3
	]
]

Currently, this does not work at all. With the PR, what does this produce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kapacitor Alert Parsing
2 participants