Questions tagged as 'json'

3
answers

VBA reading a JSON

I'm trying to read a Json that returns a web service and show the data in an Excel using VBA. I call her with this: Dim hReq As Object Dim strUrl As String strUrl = "http://api.worldweatheronline.com/premium/v1/weather.ashx?key=db3927718fd...
asked by 21.09.2018 / 12:13
3
answers

How to validate a json if there are null parameters in java

I wanted to ask you how I can validate using the if you execute certain actions, what happens is that in a json come null values when I want to set the records that are in the BD, set so to say the records that the user inserted ( edit) this is...
asked by 08.09.2018 / 01:12
1
answer

JSON Success URL

I have a web application in PHP where I generate income to an item. I can assign movements to this item. I do it with a FORM POST . Besides I have a button where I can eliminate that assignment. This method was done with JSON ....
asked by 30.08.2018 / 20:50
2
answers

how to use the componentDidMount in react JS

What I am trying to do is that this part const topics = [ { name: 'React Router', id: 'react-router', description: 'Declarative, component based routing for React', resources: [ { name: 'URL Paramet...
asked by 31.08.2018 / 17:02
1
answer

Tour Json Array of 4 levels or more Java (android)

I have a JSON that has 4 JSON objects, my question is how to travel in such a way that with first do one thing with the second one and so on I've tried with: JSONArray ja = new JSONArray(response); for (int i = 0; i < ja.length(); i++) {...
asked by 21.08.2018 / 23:47
1
answer

Send plain text with retrofit

{ Cliente_ID: 1, Nombre_Usuario: "dsadsadsa"} The problem is that the api receives plain text, try to use retrofit in the following way:    Interface @POST("Cliente") Call<Client> newClient(@Body Client client);    Model @Ser...
asked by 19.08.2018 / 21:54
1
answer

How to make an AJAX request to php? (With JavaScript Vanilla)

I'm trying to make an AJAX request to a method in my Brands driver. const filter = () => { let data = {marca:"a"}; fetch("www.algoalgo.com/marcas/marcas/filtro",{ method: "POST", body: JSON.stringify(data) , headers: { "...
asked by 23.08.2018 / 17:11
1
answer

how to accommodate AJAX JSON for search filtering?

What happens is that I grab a page already on the internet, and I want it to make a search in the box, a specific search within what is already filtered. //Filtracion $sWhere = "WHERE nomTipo ='Administrador'";//filtra los que solo son a...
asked by 15.08.2018 / 19:24
1
answer

Replace the integers of a json with strings C #

Hello friends, I need to rewind all the integers within a json by strings, to say that if I have an object like:    {x: 1} ... I'll want to have {x: "1"} but I need you to do it with a json of any size, such as    {"x": 2, "y": "GLAN...
asked by 14.09.2018 / 00:54
2
answers

pass several php arrays to javascript

the following php code that generates two arrays <?php //los datos salen de una tabla mysql $last_year_sales = [2589, 2589, 1478, 2587, 7852, 9632]; $current_year_sales = [1250, 1480, 1156, 3589, 7521, 9632]; //enviar...
asked by 04.08.2018 / 18:01