arduino-libraries / Arduino_JSON

Official JSON Library for Arduino
GNU Lesser General Public License v2.1
154 stars 60 forks source link

filter a number of occurence on a list #26

Closed sn0oz closed 3 years ago

sn0oz commented 3 years ago

Would it be possible to filter a number of occurence on a list to reduce further the size of the data ?

For example this JSON:

{
list: [
    { "number": 0 },
    { "number": 1 },
    { "number": 2 },
    { "number": 3 }
    ]
}

filtered with something like: filter["list"][2]["number"] = true;

would result in:

{
list: [
    { "number": 0 },
    { "number": 1 }
    ]
}
sn0oz commented 3 years ago

wrong library, sorry