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
votes0
answers137
viewsAndroid Studio Database Connection using JSON
I am with the following problem, I am making an app q contains login and user registration and I am using PHP and JSON code for this. However I checked my Response.Listener is never called, the…
-
0
votes1
answer77
views -
0
votes0
answers57
viewsJsonobject does not add Arraylist
I use the code below to popular my arrays quietly, but when researching a topic here, I realized that for my problem I could use a generic class. The problem is that Jsonobject is not populating…
-
0
votes5
answers1124
viewsView JSON object
I have the following JSON: "json": [ { "nome": "Meu Nome", "amigos": [ { "amigo": "João", "idade": 20 } ] } ] I also have the following: this.qtd = data.json.length; for (i = 0; i < this.qtd;…
-
0
votes1
answer44
viewsZoom in on the value found after searching
Hello! I am developing a map here and I have a search field and a map with the layers. I am using leaflet and the search I am doing customized, because the plugin does not meet my needs. I’m having…
-
0
votes1
answer434
viewsDifficulty generating a JSON object in the correct order
I am trying to generate a JSON object by following this model: { "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User", "urn:ietf:params:scim:schemas:core:2.0:User",…
-
0
votes2
answers597
viewsHow to remove an object from an array, if it exists, with json string
I’m trying to create a kind of wish list. By clicking on a button/product it populates or excludes, if it already exists. However, I cannot exclude, I can only include. I tried to use the splice,…
-
0
votes1
answer190
viewsRound up JSON value
In my code, I receive a JSON with a value (Example: 6647), and I would like to round it to just 1 decimal place. In the code, I take Json’s content by the call: render(){ return( <div…
-
0
votes0
answers43
viewsWhat method to use to not show the json data on the php page that serves as a request for android app
Good evening, I have an android app and I am using this php code for the request of a json and I wish that the data would not appear when someone used the url, because so can see the exit…
-
0
votes0
answers986
viewsFetch API - CORS error
Dear, I have a javascript application, using fetch APIto fetch the information in a static file .json. It works normally when used on a live server(localhost) in the Vscode editor. However when not…
-
0
votes1
answer169
viewsGetting information from an Objectjson without Array
I have the class below and I can find the information of a Jsonarray in this format: {"client":[{"id":"1334","name":"Bruno"}]} TextView nome_usuario; private static final String TAG_CLIENTE =…
-
0
votes2
answers134
viewsSet the name of a property dynamically in VB.NET
I have a class with a public property in it. As follows in the example: Public Property exemplo As List(Of Uso) Get Return x_exemplo End Get Set x_exemplo = Value End Set End Property Private…
-
0
votes1
answer55
viewsConvert JSON data structure to Object
I’m using the framework Materializecss - autocomplete, and would like to feed a autocomplete field with data coming from my base. The autocomplete works with data in the following object structure:…
-
0
votes2
answers526
viewsWebservice PHP+JSON - How to read return
Hello! Guys, I’d like to understand how to read the return, with the following structure:: $ws = array( 'categoria' => array( array( 'cat1' => array( 'dado1' => $dado1, 'dado2'=>$dado2…
-
0
votes1
answer182
viewsHow to receive data from a Rest API using Apache Camel
And how do I receive data from a server REST passing an authorisation of the type basic in the header? I’ve tried so many ways and it doesn’t work, and when I test Postman, works normally. I’ve…
-
0
votes1
answer395
viewsSwift 4 http get and iterate the JSON response
Hello, I am learning Swift and am making a GET request via URL that returns me a JSON with this structure. { "data": { "response": […
-
0
votes0
answers118
viewsHow to reload a PHP page via Javascript?
I own a page in PHP and that records the dodos of a form via JSON, below the script: Index.php <?php include '../includes/config_db.php'; include '../includes/functions.php'; include…
-
0
votes1
answer62
viewsplay login data in API parameter
In the login I ask the user to put the email and Cpf, then I have an api that plays data in a table that I created, then I need to take the parameters Cpf and email to put in the api. Ex:…
-
0
votes1
answer205
viewsDownload svg image to present in Imageview of Android as?
I have an api https://restcountries.eu/rest/v2/all that returns me a json on Android. This json is binded to a class using Jackson. But I need to use the url that is contained in the json that is a…
-
0
votes0
answers179
viewsError while returning JSON
I have a REST API that works correctly in my local environment but in production is cutting a portion of the return. {"status":"sucesso","data":{"return":"Inser\u00e7\u00e3o de lead efetuada com…
-
0
votes0
answers380
viewsHow to insert Json data in mysql using php
I have a document with data of json format that I want to insert in the BD phpmyadmin, I am able to insert the first data in the table that are inside "Results", but I am not able to enter in…
-
0
votes1
answer53
viewsGoogle extension Chrome shows no default popup
I started yesterday developing extensions for google Chrome, and followed how google sends: I declared my manifesto and added the popup page: { "name": "ODM Integration", "description": "Open…
-
0
votes1
answer333
viewsSend Array to BD
Good afternoon, you guys. I’m trying to pass an array that retrieves a JSON to the BD, but I’m not able to identify the objects of the Array, I think I’m doing something wrong, I did some tests with…
-
0
votes1
answer687
viewsExtract information from php json
I’m trying to collect the information contained in "Definition," but I’m having trouble accessing it. (It’s my first time working with API and PHP) { "tags": [ "hi", "hi", "hey", "hey", "greeting",…
-
0
votes1
answer100
viewsReceiving json from a web server
I am working with firebase, and I am searching the server data with Httpwebrequest, I was able to recover this data in the following way; {"-L1od7ljenm8zhsps7ne":{"Age":"18…
-
0
votes1
answer109
viewsHelp with AJAX request
I have this function that searches in the database the quantity of products in stock. public function contarProduto() { try { $pdo = Conexao::getInstance(); $sql = "select id_produto as produto,…
-
0
votes2
answers818
viewsC# Convert Dataset to JSON
I need to convert a Dataset into a JSON in order to recover in the View. The query there is just an example, because it is a large query. I’ve seen things like: string json =…
-
0
votes1
answer757
viewsHow to use JSON in Python?
I am using the following code to collect the API from the Urbandictionary site import requests import json page = requests.get("http://api.urbandictionary.com/v0/define?term=hello")…
-
0
votes0
answers64
viewsError in JSON with Accented Words
I have a code in PHP, which prints values from the database in json. <?php header('Content-Type: application/json; charset=utf-8'); require_once "conexao.php"; class Modelo { private $pdo;…
-
0
votes1
answer296
viewsQuotation marks exiting in incorrect JSON format!
I’m creating a dictionary for JSON on Razor Pages, but the quotation marks ("), are coming out as " _Layout.cshtml (UTF-8) ... <body> ... <script type="application/ld+json">…
-
0
votes1
answer937
viewsCatch element using python json
I’m using the following code to try to get what’s written inside definition, located in list import requests import json word = "salut" page =…
-
0
votes1
answer920
viewsImport data to Firebase with JSON file
I am having problems with importing data to firebase, I transformed an excel spreadsheet into csv and then converted to a JSON file, the registration in Firebase is performed normally, but I would…
-
0
votes1
answer188
viewsTypeerror: $(...). tableToJSON is not a Function
Greetings Clicking on the Button in my project shows the following Typeerror: $(...). tableToJSON is not a Function, I am using the tableToJSON plugin Code: $('document').ready(function(){…
-
0
votes0
answers113
viewsMy app aborts when trying to consume Rest
It has a Rest service that my android App needs to consume. For this I have to send a parameter in json format. It turns out he aborts the moment he consumes the Service. That’s the code I have for…
-
0
votes1
answer722
viewsVue js and Axios does not identify JSON response from API
I have the following code to fetch data from an API via POST, I get the result from JSON (as I can write it to the console. However, I cannot recur the values to fill the Vue element array. // Get…
-
0
votes1
answer147
viewsScript for Reading Webservice
I’m trying to make this code work, but in the excerpt: success: function(retorno) { If(retorno[0].erro){ $("h2").html(retorno[0].erro); } There’s been an error, and I can’t identify what’s missing.…
-
0
votes1
answer205
viewsProblems generating Oauth access token with Httpurlconnection
I’m trying to file a request for a web service that uses Oauth to generate an access token. However, although the request returns the Http 200 code, json only appears as…
-
0
votes1
answer1740
viewsPost a Json object to Webservice via AJAX
I am trying to send an object in Json format to my Java Webservice by AJAX, but I have not succeeded, I have tested wrong formats, which are not Json’s, as "string", and the database reports error…
-
0
votes1
answer148
viewshow to handle a json that contains several results using python
Hello, I’m making a python script that takes the name of a movie and returns some data to the user(title, year etc). I am using the omdbapi, but my doubt is not about it but about how to handle the…
-
0
votes1
answer76
viewsPHP is not returning query data
Hello, I am using the following code to return regions: $query = 'SELECT * FROM Regiao'; $json = array(); $result = mysqli_query ($conn, $query); while($row = mysqli_fetch_array ($result)) { $regiao…
-
0
votes1
answer183
viewsProblem catching Json in AJAX
I am trying to recover the data from my ajax request in json, they arrive correctly, but at the time I will use them only returns "Undefined". $("#selecionada").on("submit",function(){ var…
-
0
votes1
answer529
viewsOrganize Json file
I wanted a way to organize this Json file: { "ajuda": { "name":"Ajuda", "category": "Sistema", "desc":"Mostra todos os comandos disponiveis.", "usage":"ajuda [grupo ou comando]" }, "ping": {…
-
0
votes1
answer71
viewsCordova error while running Ajax call
I have a Cordova 7.0.1 application that requests a method from an Asp.Net MVC Web API 4.6 website. When the call is made on the device, Cordova run Andoid, execution of the method returns error. If…
-
0
votes1
answer610
viewsPass json parameters with php
I’m trying to make an integration with Paseguro that asks to send some data to a URL with the Header = 'Accept:application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1', 'Content-Type:…
-
0
votes1
answer785
viewsHow to make a JSON with an object array
I have a form that is sent via POST as JSON. But I have an object array called classes[] in Javascript. The Object contains discilpin, ch and stroke. That is, the array that is generated dynamically…
-
0
votes1
answer35
viewsHow else to do it?
I am getting this error when I try to upload data to the page via Ajax. There is another way to send Json objects from Servlet to JSP without using document.write? error: "A parser-blockingis…
-
0
votes1
answer331
viewsHow to print a specific JSON value in PHP
I have the following JSON file and would like to print only the value of the 'name' field, which is within 'contact'. I am using PHP language. C:\wamp64\www\macmind\client-search.php:31: array…
-
0
votes0
answers26
viewsAccent problem when generating epub with gitbook
I’m having a hard time generating one epub using the gitbook. I performed the installation of gitbook-cli and nodejs, later configured the book.json file as follows: { "title": "Distribuição…
jsonasked 6 years, 9 months ago Fábio Jânio 3,407 -
0
votes1
answer1023
viewsArray to String Conversion Error
I have an Android application that sends a string-shaped Json to the PHP server. I tested with var_dump to check that the data was being passed correctly and everything is ok. The problem is that…
-
0
votes1
answer128
viewsFilter Json from the bank using Lambda C#
I’m starting development and I’m in need of some help. I got this Json I’m getting from the bank. But I need to filter the information by name for my return method. E.g. If the name = "Percent…