Open stefan-nistor opened 2 years ago
Like jsonArrayObj.filter( "label", "labelData" ) which returns a JSONArrayObject that contains filtered data. Example:
jsonArrayObj.filter( "label", "labelData" )
JSONArrayObject
Having this JSON file
{ "cars": [ { "brand" : "Logan", "fuel" : "gas" } , { "brand" : "BMW", "fuel" : "diesel" } ] }
After cars.filter("fuel", "gas") call a new JSON file should be created/returned
cars.filter("fuel", "gas")
{ "cars": [ { "brand" : "Logan", "fuel" : "gas" } ] }
Like
jsonArrayObj.filter( "label", "labelData" )
which returns aJSONArrayObject
that contains filtered data. Example:Having this JSON file
After
cars.filter("fuel", "gas")
call a new JSON file should be created/returned