Skip to main content

All Questions

Tagged with
0 votes
0 answers
40 views

How to delete duplicates in a table?

I have written a software that every second copies the contents of a JSON file from a server into a variable (serverData). Using the json-path library I extract some information from the serverData ...
Bishop's user avatar
  • 1
-3 votes
1 answer
43 views

Filter/Remove array object based on value, from nested JSON array object in JavaScript

I have a filter criteria to apply on REST response. This response have nested sub objects. For loop going in task and filter function is not working on nested array objects. Please help me to filter ...
Mithilesh choubey's user avatar
1 vote
0 answers
16 views

One Json file, 2 values to filter, followed by inclusion in the Leaflet Menu Control

I have been on Leaflet maps for a few weeks. We are switching from Google maps to Leaflet. I work with a non-profit organization providing support for citizen water quality samplers. I do not mind ...
Louis Lemire's user avatar
0 votes
1 answer
27 views

how can I add filter to search bar of website by j.s

i have question in search bar . in a page I have at least 30 product . i will add filter that when client search the name of product ,product show . i tried to craete filter but I couldnt write ...
AmirMasoud's user avatar
0 votes
1 answer
33 views

Filter object from nested json array at any level retaining the parent array hierarchy

I have a multi-level nested array similar to the below structure. What I'm trying to do is to filter for list of cases whose has a 'flag' value of 'Gold'. Only nodes with type = 'Model' or type = '...
Dennis R's user avatar
  • 3,217
-1 votes
2 answers
61 views

How to filter JSON in java

I have a JSON like below: { "name": "John", "age": 29, "city": "Bangalore", "country": "India" } But based on ...
Unknown's user avatar
  • 31
-3 votes
4 answers
76 views

Need to get the particular attribute/value from JSON in JS

I have a JSON and I need to get SKU attribute value as a result array. The SKU attribute will be inside of shipping and OFSUC arrays. So I am trying to get those values efficiently using a filter or ...
Sabareesh's user avatar
  • 117
1 vote
1 answer
42 views

Filtering array from json file in React

I have a json file (questions) with an array of objects in it. I have one line of code filtering those objects that works perfectly: const allAnswers = questions.filter(q => q.Ending === question)....
HapaxHypatia's user avatar
0 votes
2 answers
84 views

Filter a value from json array of arrays

This is my payload, here I need to validate the status field as active or inactive in details.addressDesc array { "id": "123", "address": [ { ...
MyDream's user avatar
  • 35
1 vote
3 answers
85 views

Get content from json with Php conditionally

I am struggling to get some informations/values from a json using php conditionally. To be more detailed, this is my case: I have a json response that looks like this: { "IsSuccess": true, &...
Kleidi's user avatar
  • 43
0 votes
0 answers
107 views

OData how to filter child collection and return only items with condition

I have been struggling with returning items from a collection that have a certain condition. With the any call I receive 3/3 items in the collection while 1/3 has met the condition. With the all call ...
Takkie253's user avatar
  • 166
0 votes
2 answers
96 views

Js extract information from a json

I have the following json that is quite complex and detailed. I need to extrapolate information (text) from the json only if the resource-id contains the following text "com.shazam.android:id/&...
Paul's user avatar
  • 4,302
0 votes
1 answer
63 views

JsonPath- filter on child level in swagger file

Hi this is very short sample of my swagger file. I want to find paths which has x-policy with peerName's value is social. I have tried many jsonpaths but all of them encountered errors. I tested in ...
saba safavi's user avatar
0 votes
1 answer
46 views

Jolt spec for filtering JSON records in an array which has same value for two different fields in same object

Input JSON : [ { "id": "1", "name": "a", "token": "x" }, { "id": "2", "name": "...
Noumaan Mohammad's user avatar
-4 votes
1 answer
98 views

Feedback on my Javascript search engine project. Prints not all accepting result, no errors displayd [closed]

[JSON data recipes][1] 'use strict'; const cakeRecipes = require("./cake-recipes.json"); console.log(cakeRecipes[0]); // If you're ready to test: uncomment the code below. // printRecipes(...
Yass's user avatar
  • 5

15 30 50 per page
1
2 3 4 5
53