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
answer224
viewsVolley.Parseerror - java.lang.String cannot be converted
Hello, I’m sending POST to an archive PHP using the library Volley. Everything goes well until the application tries to show the answer to the user. In the file PHP use the command echo 'user…
-
0
votes0
answers36
viewsDivergent Results When Filtering Response in API
Edit: I managed to get him to create a single tab-crash, but now he’s not filtering the games according to the championship as you can see in the image below, he’s printing them all! I edited the…
-
0
votes2
answers947
viewsHow to perform a simple state and city search with jquery and json
This is my json test and precise, through the keys "ce" and "fortress", perform a search of their respective data. In this case, the search is done by AJAX which has been subjected to a POST through…
-
0
votes0
answers43
viewsAdditional divs with Ajax JSON do not take the style
I have a little problem, I made a programming of portffolio blocks where when I press on loads more my ajax creates the other blocks of the database. However he is not pulling the style that the…
-
0
votes2
answers295
viewsSum json object property
I have a json object and need to multiply the value vlr_produto with the function add() data={ id: 6, nome_produto: "Produto", vlr_produto: 16.98, qtd: 0 } add(data) { var mult = data.qtd++; mult *…
-
0
votes2
answers1101
viewsgetJSON Ajax for JSON with multiple objects
To search for data in a JSON simple, like: { "chave1":"valor1", "chave2":"valor2" } I use something like this: $.getJSON(dados, function(json) { $.each(json, function() {…
-
0
votes0
answers159
viewsSELECT FROM table compare values and insert or change
I would like to compare information coming from PHP Json and persist in WEBSQL. Have a moment I should know if the information coming from Mysql: Has already been registered Amended Unexciting Below…
-
0
votes1
answer50
viewsIs it possible to change the json file format?
I have a code that generates me a Json file in this format: [ { "$id": "1", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA", "total": 50.00, "datajogo": "2016-01-19T00:00:00", "terminal":…
-
0
votes2
answers129
viewsConsuming Json, problem with Cors
Good morning! I am performing a query (via jQuery and Json) in the Mercadobitcoin API, but always get an error in return. When inspecting, it is said that there is a fault by the CORS method. I…
-
0
votes2
answers228
viewsJson Web Token - How to create a token that accesses only a particular Controller or Action?
I am implementing JWT in a. Net Core 2.0 application and would like to know how to restrict token access to certain controllers.
-
0
votes3
answers2476
viewsHow to list json by separating key and value correctly
I created this example to illustrate an attempted listing of JSON seeking to separate key and value: var meuArray = { "1": "Administra\u00e7\u00e3o", "2": "Agronomia", "3": "Arquitetura e…
-
0
votes1
answer208
viewsHow to group values from a json
I have a JSON that looks like this: [ { "id": 459, "razao_social": "Testosvaldo de Testousa", "cidade": "Testolandia", }, { "id": 472, "razao_social": "teste trr", "cidade": "Belo Horizonte", }, {…
-
0
votes2
answers1198
viewsAJAX Javascript loading message axios
I’m making an AJAX request using the Github API from Axios and wanted to know how I do to, while uploading the information, it give a console.log('carregando'); and create a component written…
-
0
votes1
answer2972
viewsDelphi: idHTTP.Post HTTP error/1.1 401
I’m trying to access Delphi’s idHTTP on a json server without success. I have tried all alternatives and always have the same error: "HTTP/1.1 401 Unauthorized". Json format submitted for testing:…
-
0
votes1
answer26
viewsArray size in a JSON in Shell Script
I would like to take the size of a vector in a JSON in the scriipt shell but I’m only able to get the size of each vector string, that is, for the example : #!/bin/bash j='{"Nomes": { "nome":…
-
0
votes0
answers788
viewsIs it possible to edit a JSON file locally?
I am beginning to learn how to use JSON and would like to know if it is possible to do operations with it(reading and writing) locally. Basically a . json file with some data and an.html file. Is it…
-
0
votes1
answer23
viewsDefinition of Realtimedatabase rules
As should be my rules, so that a user logged in the app has access, can read and write only in your requests ??? { "requests" : { "-Lmqitihar-Vumkpq8fd" : { "name" means "asdasdsa", "tel" as in…
-
0
votes2
answers1526
viewsCreate array within JSON object
I am creating an array in JSON, and would like to know how to create another array within the object. var objeto; objeto = { "item" : [ { "id" : delDiv, "nome" : nomeItem.value, "cod" :…
-
0
votes1
answer64
viewsHow to use JSON
I have a link to an API (https://api.tibiadata.com/v2/characters/Norkx.json) I was wondering if there’s any way I could get "name":"Norkx", "Sex": "Fri", "Vocation": "Royal Paladin", "level":407,…
-
0
votes2
answers883
viewsRemove empty fields from an array
for(var j =0; j<data.length; j++){ var valorEmBranco = 0; for(var i =0; i<data[j].length; i++){ var porcentagem = 0; var valorPorColuna = data[j][i].valor; //alert(valorPorColuna);…
-
0
votes1
answer76
viewsHow to handle a JSON with fasterXML in java?
I have a json that comes from the bank Mongodb, I have to take and manipulate the json using fasterXml. I will have to take the names of the json properties and separate them with dot(.) instead of…
-
0
votes2
answers46
viewsHow do I complete information that is in a complex JSON type?
I am trying to carry out the filling of a Icollection type that is owned by my Professional model. When performing the request I pass the information via JSON But in VS debug and GET the information…
asp.net-mvc json entity-framework relational-model modelasked 6 years, 1 month ago Fabricio Pereira Cardoso 33 -
0
votes1
answer41
viewsConsume Retrofit json on my real device (smartphone)
I made an apirest with Springboot that works perfectly by the browser at the address. http://localhost:8080/pessoas_escalas I can consume the service locally by the Android Studio emulator, through…
-
0
votes1
answer549
viewsGoogle Maps Api v3 - Working with 2 Json files
I am creating a map, to present a lot of information, using google maps v3. I decided to work with 2 Json files, to fill the map. The first file contains the Latitude and Longitude information of…
-
0
votes0
answers119
viewsReceive a json as Java Servlet parameter
I’m developing a API using java Servlet, would like to know how do I receive a JSON in the body of the request as parameter and save to a database? Example: { "nome": "José da Silva", "email":…
-
0
votes2
answers69
viewsString containing only numbers
I need a regular expression for a string to receive only numbers, for example: "12454853", "12", "9012" These are valid, but I need when a string like: "123g123", "123er*" He calls it invalid.…
-
0
votes1
answer332
viewsScheduling of Tasks
I wonder if it is possible to schedule tasks with javascript, ie I have a javascript script and if it was possible to "clear" the 01:00 hour was run automatically. I know that in other server…
-
0
votes1
answer150
viewsString returning empty
I am trying to get me into the . zip file, select a single file called mcmod.info and save for a MemoryStream temporary. I followed as a basis that link on Stackoverflow, but when I read the var ms…
-
0
votes1
answer41
viewsReorder elements of a query on the screen
I have an application in Django and need to reorder the screen elements when the user decides to sort by date, popularity, etc.. I would not like to submit a new query each time the user selects a…
-
0
votes3
answers374
viewsTransform string into json
I’m having a hard time converting string {data} in Json, I get her separated by comma several times, I’d like to turn her into Json to collect the first key var data = [ "$SP", "92", "00:01:36.340",…
-
0
votes1
answer44
viewsMaking JSON PHP
People I’m needing to create a JSON, but I’m not getting it, look at my code below: $sqlCelula = "SELECT * from tbl_CELULAS WHERE COD_IDENT_IGREJ = 'igj"; $celulaVars = array(); $celulaVars[':igj']…
-
0
votes1
answer420
viewsJSON return to PHP with Ajax
I’m trying to pass a JSON (result of a Google Place API) with Ajax to PHP. I believe my problem is in PHP when manipulating the data, follows a part of the code: AJAX: //GRAVA TODO O RETORNO NO…
-
0
votes2
answers72
viewsHow to show Json fields with PHP
I have the following Json in a PHP variable: [ {"pergunta[0]":"Quantos anos?"}, {"pergunta[1]":"Qual sua altura?"}, {"resposta[0]":"12"}, {"resposta[1]":"1.65"} ] and my goal is to show it as…
-
0
votes1
answer915
viewsSave Json dictionary to txt
How can I save a. json dictionary of a requests in txt. I tried to do it this way but it didn’t work. import requests import json url = requests.…
-
0
votes1
answer24
viewsHow to access the Object window from another page
I am making a request via Ajax, I can capture the html, but I wanted to have access to the Object window of the page he made the request, this is possible? Example as I am using.…
-
0
votes1
answer150
viewsIntegrating Webservice C# with android
I have a C# Web Service but I can’t consume it on Android. Follows the Code of android and the LogCat. //----------------------------- Conectando a Base WS class asynProjeto extends…
-
0
votes1
answer1069
viewsHow to take data from a dynamic HTML table to register?
I have the following situation: I’m trying to log the data from Protocol checklist, but this data is inside a dynamic HTML table, as shown in the following image: When trying to save this data, only…
-
0
votes0
answers59
viewsHow do I get a JSON file to pick variables in Javascript?
It’s a Google extension where I copy a text from a page and I copy a JSON with what was copied, but I’m not sure how to do it correctly. I managed to do this part but I’m not sure if I have a JSON.…
-
0
votes1
answer78
viewsConvert JSON to 2 string in php
Boas. I have a json file that I wanted to convert into 2 string in php and then write to the database; my json at the moment comes like this: [ [ 1455628560, 2340 ], [ 1455628620, 2340 ], ] My…
-
0
votes1
answer51
viewsI cannot upload the . json file
I’m trying to send a file .json created within Angular for a server, and gives this error as a response: "A Jsonobject text must Begin with '{' at 1 [Character 2 line 1]", object_or_array: "Object",…
-
0
votes1
answer58
viewsSerialize Relationships Doctrine
How do I do a json with Entity relationships in Doctrine? I’ve looked around and made a few attempts but nothing that has worked so far. I’m doing so and returns the normal json(without the…
-
0
votes3
answers204
viewsGet function in service.js returns null
I have a Json of categories with an array of products within it. Browse all categories and all products according to the category, you are searching. Now the problem is that I want to return the…
-
0
votes0
answers123
viewsAccess to a json array value in Ajax
I am working on a project in Laravel. I am doing a dynamic search function using Ajax and Json. Function in the controller: public static function busca_ajax() { $query = Input::get('query');…
-
0
votes2
answers109
viewsExtracting Infos from an external JSON by php
<?php $json =…
-
0
votes1
answer240
viewsHow to correctly read a multi-level JSON?
In Python3 this code reads the Senate API to create a dataframe of one-year propositions import requests import pandas as pd headers = {"Accept" : "application/json"} proposals = [] url =…
-
0
votes1
answer55
viewsLayout Laravel 5.6
Expensive, I’m developing a Dashboard report via Windows 5.6 with bootstrap, but I came across something I don’t know how to solve in the layout. This is the problematic layout This is the excel I’m…
-
0
votes0
answers65
viewsGet all Steam Items
Well, I have the following code that gets you items from a particular player’s inventory. However it only shows me 1 type of each item, ie if the player has 5 boxes of the same type, it only shows…
-
0
votes1
answer256
viewsProblems using callback on a Ws
I am implementing integration with a WS which searches the data on the basis of cnpj. When consulting the WS and request a callback, it returns me the following ERROR: Uncaught Syntaxerror:…
-
0
votes2
answers55
viewsHow do I set the state with local dynamic json?
How do I place json data within the "recipes[]" array that is in the state? import recipes from '../receitas/recipes.json' constructor(props) { super(props); this.recipes = recipes.results; //json…
-
0
votes1
answer188
viewsHow to pass a second parameter using . htaccess to php code?
I’m writing my api using . htaccess-friendly urls to do the redirects. When I need to pass a second parameter, I’m having problems My file . htaccesss is like this: RewriteEngine on RewriteCond…