Most voted "json" questions
JSON (Javascript Object Notation - Javascript Object Notation) is a lightweight data exchange formatting. For humans, it is easy to read and write. For machines, it is easy to interpret and generate. It is based on a subset of the Javascript programming language, Standard ECMA-262 3rd Edition - December/1999.
Learn more…3,116 questions
Sort by count of
-
0
votes1
answer29
viewsReading Json PHP
I’m starting to develop in PHP, and I’m having a hard time reading the return of a Json; This excerpt, I managed to perform the reading: "cost_per_action_type": [ { "action_type": "comment",…
-
0
votes1
answer263
viewsLink does not exist or invalid, Facebook ADS API / creating Javascript ad
I’m creating the creative ad like this: FB.api(act_xxxxxxx + '/adcreatives', 'POST', { name: vlName, title: vlTitle, body: vlBody, image_url: vlImage_url, object_id: vlObject_id }, function…
-
0
votes0
answers75
viewsHelp on CURL Json
I have a Curl code, which pulls json by url, but is giving an error that I can not solve, someone can help me? <?php $c = curl_init(); $login = 'LOGIN'; $key = 'KEY'; $file = $_GET["fileid"];…
-
0
votes1
answer407
viewsSpecific chunk break in JSON file with python
Is it possible to break a line from a specific section of Json, transform it into an array, and then streamline it? Why do I ask this.. I am developing a file mining bot and came across a situation…
-
0
votes1
answer285
viewsJSON in Laravel
I wanted to know how to send the data of the query in json through the controller and how the view should receive them. Controller: $dados = $req->all(); $query = ""; if($dados['filter'] == 1) {…
-
0
votes1
answer321
viewsCurl request does not work depending on JSON size
My problem is that depending on the size of the JSON sent, the request CUrl does not work, ie I send 2 photos on JSON, right, but 4 is already reason for a TimeOut. The problem is not in API for in…
-
0
votes1
answer49
viewsAJAX function does not pass output to another function
I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr =…
-
0
votes1
answer40
viewsVirtual column extracted from a json in Mysql does not receive NULL value
I have a virtual column called '_Cpf' that is extracted from the column '_Document' in json. Below is the following query: CREATE TABLE `user` ( `_document` json DEFAULT NULL, `_id` varbinary(32)…
-
0
votes0
answers29
viewsThe PUT request is not sending the whole object
That’s the put I’m giving, (the lower will have the JSON that’s coming from the body): put(endpoint: string, body: any) { return new Promise((resolve, reject) => { return this.http.put(this.url +…
-
0
votes0
answers330
views -
0
votes1
answer29
viewsJson Merge with Javascript Array
I would like to know (understand) how to treat a json in javascript type: var arrDados = {"mes":["12","5","1"], "mes":["2","8","3"]}; var meses = {1:'Jan', 12:'Dez', 6:'Junho', 5:'Abril', 3:'Março',…
-
0
votes1
answer11006
viewsJSON request: CORS Access-Control-Allow-Origin header error
I need to make a JSON request to Payu, but show me the message: Blocked cross-origin request: Same origin policy (Same Origin Policy) prevents reading the remote resource on…
-
0
votes2
answers1133
viewsHow to receive JSON data?
I want to recover a JSON code for HTML with jQuery. How can I do this? And how can I use CSS with JSON data? Here is the JSON code. { "quiz": { "sport": { "q1": { "question": "Which one is correct…
-
0
votes1
answer39
viewsTransform a string array (which are links) into a Windows image on android with json
I have a json on a server with image links and need to convert to imagemView, I could only open on the android screen as string showing the image link. my json my code that receives json…
-
0
votes3
answers155
viewsHow to convert JSON to Object and find an id (No Array) - JAVA
I have a Json that does not contain an array and I need to get information from this Json. Follows the JSON {"_status":"sucesso","_mensagem":"Impressão em…
-
0
votes2
answers3743
viewsJava - Taking the value of a specific JSON element
I am using the exchangerate API (https://www.exchangerate-api.com) to pick up the currency quotes of the day. Using the code below I get a Jsonobject containing the "rates": private JsonObject…
-
0
votes1
answer28
viewsAndroid Studio app stopped picking up Json online from nothing
I am developing an APP, where it needs to get data online via Json from an API, without making any changes it stopped working while it was working normally, I have tested on the server that this…
-
0
votes0
answers55
viewsError loading php page on online site
I did the whole site on my computer testing with the shamp. But when I went online, some problems appeared when loading 3 pages of access to the bank that are similar. <?php…
-
0
votes0
answers38
viewsHow to cache a json Xamarin IOS request
I’d like to know how to do cache of a request Httpclient whose return is a json and determine the amount of storage days of that cache. public async Task<List<Categoria>>…
-
0
votes1
answer285
viewsJackson and json array
All right, guys? I’ve been racking my brain for a few days now but to no avail. I need to insert in the BD information that comes through JSON. It turns out that when an array comes, it doesn’t want…
-
0
votes1
answer223
viewsLoad select via ajax
I am trying to load a select via ajax, following as I am doing: HTML: <select id="cbplanos" class="form-control"></select> Controller Code: public async Task<IActionResult> Load()…
-
0
votes1
answer145
viewsLoad input text after select
I have a select that is being populated via ajax, when opening the modal, I call the function that loads the select, and it is working perfectly. But I need a cascade effect, in the first field, and…
-
0
votes2
answers335
viewsJson does not return data from Mysql database
I have a table in the database Mysql which contains 3 fields ( id, name and template) different from the other fields, the email template data with tags HTML (structure in longtext). When I execute…
-
0
votes0
answers30
viewsJSON verification in JQUERY
I have an ajax chat on my website. However, sometimes messages are duplicated for reasons not relevant. Therefore, I would like to check if the messages I receive in JSON already exist in the chat,…
-
0
votes0
answers23
viewsJQUERY object with dynamic string
I have a for() that adds some elements in the div#chat_box according to the JSON returned in an AJAX. Only that I would like to see how many data-Identity elements equal to those returned in JSON…
-
0
votes1
answer1611
viewsJson Special Characters Error
I have a script where, after selecting the first select it returns me in the second select the currency referring to the country, but these countries and coins when you have special requirements are…
-
0
votes1
answer285
viewsTake data from a JSON array and add to a list in Java WEB
I have a list in JSON: {"_status":"sucesso","_dados":{"situacao":"PROCESSADO","mensagem":"Consulta realizada com…
-
0
votes1
answer36
viewsAjax $()click event does not work
I have a problem at the event $().click() ajax. I’m trying to send an HTML table to convert to JSON and send it to PHP. However, when I click on the button to grab the event, nothing happens. Nor…
-
0
votes1
answer34
views -
0
votes0
answers717
viewsAfter Ajax Function, refresh the page
I have this function, and I would like it to work everything ok, I would like you to update the page, but it doesn’t always update, follows how I am doing: function GravarDados() { var dataInicio =…
-
0
votes1
answer640
viewsformat json return with javascript
I have the following code function functionCLick(name) { $.getJSON('livros.json', function(data){ $.each(data, function(i, item){ if(item.name == name){…
-
0
votes0
answers226
viewsSave a JSON to the database or create an intermediate table?
Good night! I am in a small Dilemma, I am building an application to control events,in this application I have an event that can have several guests in the Front end I am thinking of using a…
-
0
votes0
answers672
viewsBad request requsition http post angular
When performing an http post request, I am receiving: Object { headers: {...}, status: 400, statusText: "Bad Request", url: "https://hidden address", ok: false, name: "Httperrorresponse", message:…
-
0
votes0
answers54
viewsRetonor Ajax, Json in PHP
how I take the return and put inside a php variable example: let’s say I’m returned the user id and wanted this id to be inside the $id so that can be made a link ">name if someone can help me…
-
0
votes2
answers436
viewsReceiving HTTP POST Json with PHP MYSQL PDO
I’m having a hard time solving a problem and I’m counting on your help. I am receiving, from an external API, an HTTP POST request in JSON format with some information. I need to take this…
-
0
votes1
answer428
viewsIs there a standard for key naming of a JSON?
I am consuming a JSON, and I want to use the keys of this JSON as options of a select, but the nomenclature is in camelCase and without accents, ex: "destaques": [ { "fornecedoresCompany": [ {…
-
0
votes0
answers150
viewsConvert API Json PHP to C#
Hello, I’m having trouble converting a PHP API to be used in C#, I can connect to the API but I can’t send data, someone could help me? Follows API in PHP: $process = curl_init("URL API");…
-
0
votes1
answer165
viewsSend form without loading page via json
I’m developing a website and I’m using Windows, and I need to send a form without updating the page, I’m using jquery but I don’t know much how someone can help me?. html form <form>…
-
0
votes1
answer593
viewsHow to Get Specific Return Data from a JSON with Ionic 3
I believe it’s simple, but coming out of Ionic 1 to 3 has changed so many things. I need to take all my Json returns from this routine (I actually need the user ID and log in localstorage):…
-
0
votes0
answers133
viewsHow to make a datalist of options generated with a json using Angularjs?
I wanted that when filling the field of professions, a list of the professions already registered for the end user would appear, as a way to help the user follow a pattern for the names. So I…
-
0
votes0
answers161
viewsDoubt Consume Web Service in Wordpress
I have a site in wordpress, made by myself, is called School Circuit, in it I need to consume the data of a webservice for management of championships, teams, games, students, etc... The company…
-
0
votes0
answers57
viewsHighcharts does not read JSON from the Central Bank
I’m using the https://cloud.highcharts.com and I want to create a dynamic chart (live data) using this BCB Json: http://api.bcb.gov.br/dados/serie/bcdata.sgs.24887/dados?formato=json The problem is…
-
0
votes1
answer163
viewsAjax with Antiforgerytoken does not pass the data
I’m having trouble putting the AntiForgeryToken on my date of json. Follow the code that I pass the information from my data to the controller hassle-free. var todos_servicos = { ServicoFornecedor,…
-
0
votes1
answer402
viewsInserting JSON object array in mysql with PHP
Good afternoon, you guys. First forgive me if it’s a very ridiculous question, I’m learning to tinker with the language still. I have the following json: [ { "id": 0, "codigo": "847010",…
-
0
votes1
answer499
viewsJSON returning Undefined value
Guys, I have a code where I receive JSON data, but when I show it is as Undefined. function usuario_search(id){ $.ajax({ type:"GET", url: "/usuarios/search/"+id, success: function(data) {…
-
0
votes1
answer160
viewsDoubt Compare Values Returned from JSON Webservice
I have a site in Wordpress and in it I am consuming a Web Service, I created a function to filter the championships based on some information: Sex : M Modality : 2 Category : 4 If all are true, it…
-
0
votes1
answer22
viewsDoubt print more than one item in return JSON web service
I have a site in Wordpress and in it I am consuming a Web Service, I created a function to filter the championships based on some information, If all are true, it returns the name of the respective…
-
0
votes1
answer271
viewsProblems traversing nested json
I have a sponse in json I’m having a problem walking through it, the first is that I can only get to a part of the json and not at the value I want, the second that is conseguente of the first is…
-
0
votes0
answers58
viewsHow to convert a Json to PHP array
My idea is to be able to take every element of mine Json and convert to array in PHP... That’s the Json that I want to be able to do decode, then insert each{true or false} element of that same…
-
0
votes1
answer457
viewsAJAX function to update table
I have this function in AJAX to update the data of a table, the data is coming from the controller correctly, but it does not update with the correct data, it updates blank. function…