eclipse-sparkplug / sparkplug

Sparkplug
Eclipse Public License 2.0
109 stars 39 forks source link

Question: How to transform generic json data to sparkplug #519

Open MennoK opened 5 months ago

MennoK commented 5 months ago

What do you want to know?

I'm trying to figure out how to transform 'generic' nested json data to sparkplug payload. I understand that the template datetype can be used in a nested way, but I struggle to transform the array types.

Could someone give a suggestion how to do this?

For example:

{
 "my_metric": {
     "a": 1.0,
     "b": {
         "c": "hello",
         "d": "world"
      },
     "e": [{"f": 1, "g": 2}, 
           {"f": 3, "g": 4}]
  }
}

Is this related to a Sparkplug Listing request? If so, link the issue from https://github.com/eclipse-sparkplug/sparkplug.listings here.

No response

Version

3.0.0 (Default)

Accept EFTL Terms