Questions tagged as 'json'

1
answer

FormJSON PHP for CURL,

How to move from ...    file_get_contents () for CURL or Guzzle $content = http_build_query(array( 'oid' => '00SH1000000ASZF', 'retURL' => 'https://www.site.com.br/', 'first_name' => $nome,...
asked by 17.11.2017 / 23:53
1
answer

Zoom in on the value found after searching

Hello! I'm developing a map here and I have a search field and a map with the layers. I'm using leaflet and the search I'm doing custom, because the plugin does not meet my needs. I'm having trouble zooming after finding what I'm looking for....
asked by 22.11.2017 / 00:08
0
answers

How to send ID written to variable in JSon return

I am doing insert using a class but I am not able to retrieve the last id registered, I need to save this id in a variable in json return because I need it to make a new registration, what I have is this : require_once "....
asked by 08.11.2017 / 18:36
1
answer

How to pass values from ViewBag to a Javascript function in an ASP.NET MVC application

I have the following ActionResult Controller in my application. In this ActionResult I have two ViewBags that capture a deserialization of Longitude and Latitude values originating from a Google API. The values arrive perfectly in the ViewBa...
asked by 10.11.2017 / 21:52
1
answer

Capturing field of a complex JSON

I'm using the Java language, with the org.json version 2017101 library to capture data from a JSON. Follow JSON below: {query: {"UF":"SP", "results": {"cidades":[ {"cidade":"sao paulo", "contagem":564561}, {"cidade":"rebeirao","contagem":52...
asked by 30.10.2017 / 14:37
1
answer

Functions Conflicting When Returning Array

I have two functions that are triggered from the moment the user types a product code, however they are conflicting, could anyone tell me what to do? For, within the JSON, in Inspect = > Aba Network , I have these results that would be the o...
asked by 30.10.2017 / 12:31
3
answers

How do I display the API JSON?

After performing this, I came across this error, which did not display API information. Being that in another URL of a similar API the code displayed and worked perfectly. API URL: link $.ajax({ type: "POST", dataType: "JSON",...
asked by 30.10.2017 / 17:00
1
answer

How do I display the table data (HTML) of a database through JSON Express?

Hello! I would like to know a way to present to the user in an HTML table, data stored in a MYSQL database with connection through JSON Express. const express = require('express'); const app = express(); const bodyParser = require('bo...
asked by 03.11.2017 / 06:07
0
answers

Search and List via Json_decode

I have the following tables: Whendoingthebrandsearchthroughtheinputpost,Ineedtolistalltheproductsthatcontaintheidoftheselectedbrand.Belowismyexcerpt.$marca=$this->input->post('marca');$marca=explode(',',$marca);if(count($marca)>0){$i=0...
asked by 17.10.2017 / 13:31
0
answers

JSON reading (Trying to get property of non-object error)

I have the following JSON in $ return: { "xml": "{ \"orders\":[ { \"code\":\"PedidoTeste-1508156986545\", \"channel\":\"PedidoTeste\", \"placed_at\":\"2017-10-16T10:29:46-02:00\", \"updated_at\":\"20...
asked by 17.10.2017 / 15:54