Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keys function to filterx #271

Open
jszigetvari opened this issue Sep 3, 2024 · 1 comment
Open

Add keys function to filterx #271

jszigetvari opened this issue Sep 3, 2024 · 1 comment
Assignees
Labels

Comments

@jszigetvari
Copy link
Contributor

jszigetvari commented Sep 3, 2024

When we have a parsed SDATA structure in JSON, sometimes we need to work with the actual names of the keys.
This is currently very difficult, so we would need to add a helper function for that.

            "sdata_values": {
              "nm_MobilityAnalyticsAppData@11912": {
                "MobilityPID": "01BF47AA41BDE17800505995159C002",
                "DeviceName": "Wemmet-5547",
                "UserName": "tim.smith",
                "PhoneNumber": "2065551234",
                "CurrentCarrier": "AT&T",
                "AppName": "CustomApp1",
                "AppType": "User",
                "Bytes": "1116842",
                "DateHour": "2017-02-26T19:00:00.000Z"
              }
            }

In this case I would like to get the nm_MobilityAnalyticsAppData@11912 string, without knowing its content beforehand. Something like this would be sufficient, although the final usage may be different:

keys(sdata_values)[0];
@jszigetvari
Copy link
Contributor Author

We must not forget to update the relevant application configs once this function becomes available.

@alltilla alltilla changed the title Add key function to filterx Add keys function to filterx Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants