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

extracting data from deep down #208

Closed
andrea-dintino opened this issue Jun 21, 2021 · 4 comments
Closed

extracting data from deep down #208

andrea-dintino opened this issue Jun 21, 2021 · 4 comments
Assignees
Milestone

Comments

@andrea-dintino
Copy link
Member

andrea-dintino commented Jun 21, 2021

Using this data:

{
  "Premio_da_Pagare": 50,
  "cognome": "Rossi",
  "controllo_pioggia": 10,
  "dataFromEndpoint": {
    "cod": "200",
    "count": 1,
    "list": [
      {
        "clouds": {
          "all": 20
        },
        "coord": {
          "lat": 43.7667,
          "lon": 11.25
        },
        "dt": 1624277371,
        "id": 3176959,
        "main": {
          "feels_like": 305.32,
          "humidity": 48,
          "pressure": 1010,
          "temp": 304.11,
          "temp_max": 304.82,
          "temp_min": 303.15
        },
        "name": "Florence",
        "sys": {
          "country": "IT"
        },
        "weather": [
          {
            "description": "few clouds",
            "icon": "02d",
            "id": 801,
            "main": "Clouds"
          }
        ],
        "wind": {
          "deg": 0,
          "speed": 2.06
        }
      }
    ],
    "message": "accurate"
  },
  "limite_franchigia_1": 2,
  "nameOfNewObject": "HELLO_WORLD!",
  "nome": "Mario",
  "percentuale_franchigia_1": 20,
  "premio_stipula": 1000
}

I want to perform transformations on "main" inside "weather" inside "list" inside "dataFromEndpoint".

@jaromil
Copy link
Member

jaromil commented Jun 22, 2021

Can be implemented with a walk / pointer system

@jaromil jaromil self-assigned this Jun 22, 2021
@jaromil jaromil added this to the 3.0 milestone Jun 6, 2022
@jaromil
Copy link
Member

jaromil commented Dec 6, 2022

When I create the pointer to 'dataFromEndpoint'
and I push the pointer in `list`
and I push  the pointer in `main`

# move something inside the table referenced by pointer
When I move 'myData' in pointer
When I copy 'myData' in pointer

# exctract to the root something inside the table referenced by pointer
When I extract 'feels_like' from pointer

@jaromil
Copy link
Member

jaromil commented Oct 23, 2023

When I set the pointer to 'dataFromEndpoint'
and I enter `list` with pointer
and I enter `main` with pointer

# move something inside the table referenced by pointer
When I copy 'myData' to pointer

# exctract to the root something inside the table referenced by pointer
When I create the copy of 'feels_like' in pointer
and I delete 'feels like' in pointer

@jaromil jaromil modified the milestones: 3.0, v4 Oct 24, 2023
@jaromil
Copy link
Member

jaromil commented Oct 24, 2023

implementing in pull #752

@jaromil jaromil closed this as completed Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants