Questions tagged as 'json'

1
answer

Float with null value Spring

I have an application with Spring Data. A Call the findAll () method of Spring, there are null values in the database. When doing the set of the object the field comes with null value by triggering the error message: Can not set float field br.c...
asked by 29.12.2017 / 19:39
0
answers

How to correctly read an API with JSON and create list?

In Python3 I made a program to read an API (from the Chamber of Deputies) and get the data in JSON import requests import pandas as pd url = 'https://dadosabertos.camara.leg.br/api/v2/deputados' # Primeiro eu fiz uma lista com dicionários -...
asked by 19.12.2017 / 13:56
2
answers

How can I echo a JSON in PHP?

Look, I'm doing tests with an api where I'm getting this json: [ { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "rank": "1", "price_usd": "18880.8", "price_btc": "1.0",...
asked by 19.12.2017 / 03:37
0
answers

Error returning JSON

I have a REST API that works correctly in my local environment but in production is cutting a part of the return. {"status":"sucesso","data":{"return":"Inser\u00e7\u00e3o de lead efetuada com sucesso. The correct one would be: {"status":"...
asked by 21.12.2017 / 14:50
1
answer

Return database data in the label with Javascript

I need to return the database data inside the inputs when I select the "Edit" button without the page being reloaded, however, by clicking "Edit", I see that the button action changes, according to the javascript code, but the inputs are not fil...
asked by 12.12.2017 / 01:34
0
answers

How to insert Json data into mysql using php

I have a document with json format data that I want to insert into phdmyadmin DB, I am able to insert the first data into the table that is within "results", but I am not able to enter "catechisms_students_attributes" "education_sponsor_descript...
asked by 22.12.2017 / 23:28
0
answers

How to reload a PHP page via Javascript?

I have a page in PHP that writes the dodos of a form via JSON, below the script: Index.php <?php include '../includes/config_db.php'; include '../includes/functions.php'; include 'pdv_lib.php'; class Conta { public $mesaNumer...
asked by 11.12.2017 / 13:59
1
answer

Convert data structure in JSON to Object

I'm using the framework Materializecss - autocomplete , and would like to feed an autocomplete field with data coming from my database. Autocomplete works with data in the following object structure: { "Apple": null, "Microsoft": null,...
asked by 01.12.2017 / 14:14
2
answers

Define 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 Propert...
asked by 01.12.2017 / 13:28
0
answers

Fetch API - CORS error

Dear, I have an application in javascript, using fetch API to fetch the information in a static file .json . It works normally when used on a live server (localhost) in the VsCode editor. But when it does not run on a local server,...
asked by 29.11.2017 / 18:13