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
votes3
answers198
viewsHow to add data from an array or json in PHP
Hello, I have a PHP array with data coming from the database, so it’s not static data, it changes. I need to add the wrong passes, goal kicks, etc of each player and save in a variable, because I…
-
0
votes1
answer26
viewsProblem with Jsonresponse in my Symphony4 Controller
I have a problem with my Jsonreponse in my template. V Controler V <?php // src/Controller/DefaultController.php namespace App\Controller; use…
-
0
votes1
answer202
viewsInsert clickable link on a map with JSON
I’m trying to put together a map of the state of Espírito Santo, where you click on the city and can access the content for each municipality. I found a framework (Fusioncharts) that I managed to do…
jsonasked 5 years, 6 months ago Daniel Dias 13 -
0
votes0
answers62
viewsAutocomplete materialize by closing
Friends someone knows how to solve the following problem, the materialize autocomplete, does not show when completing the lenght, but when clicking again on the input it opens and closes quickly…
-
0
votes1
answer150
viewsLanguage change with JSON
I am developing a website and it will have two languages. For this, I have set up a JSON that changes the languages by clicking on select box of the corresponding language. However, the code does…
-
0
votes0
answers37
viewsProblem with select box for language change
I have a custom select box where my language changes website it works perfectly however I stylized it does not work and does not change the language of my site how can I make it to be stylized and…
-
0
votes2
answers134
viewsI cannot send JSON array to PHP page
Good night, I am trying to send a simple code array (2,5,7,etc) in Json format to a php page through an Ajax request but I cannot. My JS: <script type="text/javascript"> function enviArray() {…
-
0
votes1
answer37
viewsMongodb does not return query correctly
I have the following code: from pymongo import MongoClient class ConectaMongodb: def conecta(self): client = MongoClient('mongodb://localhost:27017') db = client.starwars_api return db def…
-
0
votes1
answer154
viewsReturn Json Mysql array
I have two tables inside in a database, and I need you to return the data in an array Today I have only return from the table tbl_categorias_photos The return and so on. [ { "id_cat_fotos": "3",…
-
0
votes1
answer110
viewsPass parameters on GET
I’m trying to do a GET to validate a user using Cpf and password,using DAO, but I’m not sure when to pass the parameter. Follow the get code private Usuario usuarioLogado; @GET…
-
0
votes1
answer629
viewsLimit JSON requests made in an API
I am creating a mini API to make queries on json using ajax, and I’m facing some security issues. The API is already ready and is returning the data correctly. The problem is in the file that makes…
-
0
votes1
answer148
viewsPass data without Parsing to handlebars
I’m passing data to the handlebars through the express so: res.render('user/apps/todos', { todos: JSON.stringify(todos) });` And so I get on the page: {{ todos }} Now, if todos for: [{"title":"My…
-
0
votes1
answer73
viewsLoad Json data via Ajax
Guys, how do I load the json data into a table in html? The table is mounted, the script I’m pretty sure is right, to print the data in the table, but I think there’s something missing, sap, maybe a…
-
0
votes2
answers2339
viewsSyntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data
<?php session_start(); header('Content-type: application/json'); $email = "XXXX"; $password = "XXX"; $serviceId = 4728; $url = 'https://login.globo.com/api/authentication'; $jsonAuth = array(…
-
0
votes1
answer29
viewsHow to fill a Dropdownlist from another Dropdownlist
I need to know how to popular a Dropdownlist from another Dropdownlist. Example: I have a Dropdownlist called Team that takes information from my DB. When I select for example "Equipe1" I need that…
-
0
votes2
answers87
viewsGenerico code for building mysql queries
Well, I need to build a generic code that builds a mysql query, I want to find out the best way to do it. Through a JSON I will send the information, it is they: "Group"(TAG, EMPRESA, CARRO);…
-
0
votes0
answers44
viewsError 500 (Internal Server Error) Get
ERROR GET http://localhost:54446/Tasks/Listrintegrants? team=1 500 (Internal Server Error) HTML @using (Html.BeginForm()) { <div class="form-horizontal"> <h4>TarefaViewModel</h4>…
-
0
votes2
answers24
viewsRendering with v-for
I have this html code (I have a script tag in the head that prompts Vue already) <table class="table-striped" id="productsTable"> <thead> <tr> <th>Nome</th>…
-
0
votes1
answer50
viewsDo JSON regex excluding element
I have the Json below and need to pick up only the return token: { "token":…
-
0
votes1
answer264
viewsRun PHP function after reCAPTCHA validation
I am working on a script that queries an external API that returns the data in json, I am making the consultation using ajax, but I’m facing some security issues. The query works perfectly, I just…
-
0
votes1
answer672
viewsPrint JSON formatted using PHP
I have the following code: <?php $arquivo = scandir("Arquivo"); $data = array(); foreach ($arquivo as $img) { if (!in_array($img, array(".",".."))) { $filename = "Arquivo" . DIRECTORY_SEPARATOR .…
-
0
votes1
answer80
viewsManipulated image slide with database in Node.js
There’s this slide of images in bootstrap, I want it to receive the images from the database (so far so good), but instead of displaying one by one it’s listing all at the same time. that’s the…
-
0
votes1
answer42
views -
0
votes2
answers136
viewsI can’t get information from my API via android app
I created a web API with the code: <?php header('Content-type: Application/JSON'); include("../Classes/conexao.php"); if($_SESSION['conectado'] == false){ echo json_encode("Sem resposta do…
-
0
votes1
answer195
viewsa. getTime is not a Function - Google Charts
Good night I wonder if anyone ever caught this mistake while creating the charts by Google Charts a. getTime is not a Function Return of the Json…
-
0
votes2
answers976
viewsHow to get javascript/jquery ajax array values
I am making an ajax request and returning the data by php with json_encode server side: $id=1; if(isset($_POST['id'])){ $id = $_POST['id']; }else{ http_response_code(400); } $produto =…
-
0
votes1
answer93
viewsProblem searching and filtering date data on object
I have the following functions to search and sort a user for a certain date, however, when running these functions on an object, it generates an error KeyError: 0 in function listagemData #Criar…
-
0
votes1
answer640
viewsHow to place an image in json
Hello i am trying to put data in json an image and then in html appear a title a location a text and an image, but I already tried url() and src but I can’t put it there... [ { "titulo": "Exemplo",…
-
0
votes1
answer124
viewsDoubt with json format Asp.net core web api
Hello I have a functional example of data query searching the zip, the data are returning in the format: function searchCep () { // Recupera o value do input cep let cep =…
-
0
votes1
answer78
viewsPass file by parameter in a function
I’m doing a function that turns a . xml file into a json file... I found some functions on the internet already, that do this but I do not know how I can pass the file by parameter, as the function…
-
0
votes1
answer116
viewsAccess Poke api via java eclipse
I would like to create a java program (via eclipse), which can read a URL referring to the Pokeapi site, to 'access' the site and write all the JSON present in the URL. However, my next problem: I…
-
0
votes0
answers229
viewsapi google images
Community, I’m having problems using the google search api (images), where it does not return me the possible results, for example, I do a search related to the car and it returns me images that are…
-
0
votes1
answer545
viewsImage in Json without using Base 64
Hello I’m creating a json and in each json information I need to put an image but I didn’t want a giant code so I don’t want to use Base64 there is some way to put a link in the json that leads to…
-
0
votes1
answer90
viewsGroup JSON data (sent by multiple devices) by date
I’m working on a project with websokets and I’m not sure how to solve the following problem. I receive via WS JSON data from various devices. Each device sends a value once per second. In the client…
-
0
votes1
answer251
viewsHow to filter JSON objects through the fields of an array?
How can I search for JSON objects by the tags assigned to them? Type I want to get all objects that have the "algodao" tag. I’m creating the model as it is down there for now, but I don’t know if…
jsonasked 5 years, 5 months ago Wesley Feitosa 25 -
0
votes3
answers597
viewsSumming up JSON values
I’m starting to mess with JSON and Javascript and have the following AJAX: $.ajax({ url: 'https://...', type: 'POST', dataType: 'json', data: 'inpnomeRequisitante=' + 'XXXXXXXXXX', success: function…
-
0
votes1
answer63
viewsIterating select dynamic on add and remove lines
I am developing an add and remove lines as in image The first select comes from a database with PHP and the ones that are added later dynamically come through getJSON. It is working but are being…
-
0
votes1
answer363
viewsImport JSON to Mysql table
I am trying to import a JSON into Mysql, but without success EDIT: JSON has the structure below, it is return of this wikidata sparql query. The query created a document for each tuple { "_id" :…
-
0
votes1
answer111
viewsReturn txt lines to JSON in PHP
Friends, help me with my class? I’m taking a programming course and I’m getting beat up with JSON. I have a text file (.txt) with 5 lines containing the names of the students in my classroom so I…
-
0
votes0
answers47
viewsRandom number identification in PHP and JSON
I am creating a chat in PHP and JSON. I have an algorithm that generates a random number that turns into a file . json. I then want to identify the Random number that was generated by PHP, it is…
-
0
votes0
answers67
viewsApi does not return JSON correctly
I am trying to request a list that should contain the indices 'asks' and 'bids' but I can only 'bids', I don’t know if there is a limit to the size of the request in python, I can’t handle this…
-
0
votes1
answer58
viewsQt Error: ASSERT Failure in Qlist<T>
I am new using Qt Creator and am currently working on a project for college and am getting the following error ASSERT Failure in Qlist::Operator[]: "index out of range", file .. /.. /. /..…
-
0
votes2
answers360
viewsExtract information from a tuple and place in different variables
I’m beginner and I’m caught in a problem I don’t even know how to research right. This is what happens: My code needs to select data from a database table (so far so good), and then need to separate…
-
0
votes1
answer80
viewsHow to set variables with JSON received from an AJAX request
I am receiving a JSON and would like to set variables with such information. How do I do this? $.ajax({ url: "/pessoa-gerenciar/consultar-codigo-postal", type: "GET", data: { codigoPostal:…
-
0
votes1
answer83
viewsAutomate get from a list of tuples to JSON variables
I have a code that searches for information in a list of tuple, the code is very simple, it is searching the info in Index [0] and putting in my variables for the POST. I’d need to automate it so he…
-
0
votes1
answer589
viewsHow to handle an array in json format in classic Asp
Well my situation is as follows, I have a variable that brings me the following results: var1 =…
-
0
votes0
answers83
viewsGetting null using external api with restsharp
I am facing a problem when trying to get an external API that returns Json. Instead of storing the value of json variables in the model is receiving null. Model: namespace bitcoin.Models { public…
-
0
votes1
answer48
viewsDoubt how to manipulate (delete attribute) an Object or Json in php
The idea of the application is to create a json template from the string The string is always changed but respecting the syntax that is like accessing the elements and an object $var; from the…
-
0
votes1
answer48
viewsHow do I insert a new row between two other rows of a table with jquery?
Good morning! I have a page with a table, which is generated by the database. I need to insert a new row through a button, however, I’m having difficulty inserting this new row enters two other rows…
-
0
votes1
answer178
viewsUpdate data in JSON with Vue.js
I have a small JSON called "users" [ { "id": 1, "name": "Arthur", "data": "1998-11-22", "email": "[email protected]", "departamento": "Vendas" } ] And another JSON called "departments" [ { "id": 1,…