Skip to content
Advertisement

Tag: json

Group results of multiple POST API calls

I use the below script to loop through the input (skipping first one) to post some data to my API. Result How can I capture the combined response of both calls into a variable I can use later on in my script? something like var allNum = res.result.number[0]? This is what I want -> Var allTens = “002, 003” Script

Why does the decoder not sort by IDs

I’m attempting to have the app get the js file and load the list in order of ID’s first. Videolist+ViewModel.swift VideoDetails+VideoModel.swift VideoUseCase.swift Response.swift what I do not understand is why it randomizes the ID’s it continues to generate random sets of videos in different orders. I’ve attempted everything from videos.sorted to recoding from scratch. AdvertisementAnswer […]

Best way to properly store data in a JSON?

I’m studying about JSON and its use cases. Suppose I have a recipe book and I have the following JSON to store recipes (I apologize if anything is wrong before hand, I’m just starting with this) Say I wanted to add a third recipe, or add a new ingredient to a recipe…I’m wondering what is the best option (code-wise) to

Problem to get some values from json in javascript

I’m trying to get the values ​​from json estimatedDeliveryDate and amount but I have found errors and difficulties to get these values, I tried several ways but none managed to extract the result, if anyone has any tips on how I can do this thank you, follow the code below in javascript plus json for the extraction Answer Arrays are

Text Sliders front-end using React

I’m learning basics of react and currently im exploring certain problem statements available on the internet. One such problem statement required me to create a react app for a text slide creator with previous , next and reset buttons. I was able to create till here – My app.js file looks something like this- and my SlideComponent.js looks something like

Advertisement