Questions tagged as 'json'

1
answer

Mysql Error: json_set does not exist

Currently I'm using Laravel to build some projects (personal); I have no experience with the framework, but a problem appeared, apparently due to MYSQL. I created a table named tabelateste and in this table the following columns To...
asked by 12.11.2018 / 21:30
2
answers

Change an entity by passing a list

Hello, I have a class teacher registered and I want to change it by passing an array of materials. I have the following code: class teacher: //... atributos não importantes ao problema @ManyToMany @JoinTable(name = "teacher_x_le...
asked by 11.11.2018 / 17:06
0
answers

How to remove an index from the localStorage

I need to manipulate localStorage and I'm not sure how to remove an item from an index. I'm very new to the subject and I'm not sure how to pass this information to the button. Follow the code: var base; //verifica se tem alguma...
asked by 11.11.2018 / 22:24
1
answer

How 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 that made the request, is it possible? Example how I'm using. $('#link').click(function(){ $.ajax({ url: 'www.goog...
asked by 12.11.2018 / 01:56
0
answers

Show in json a relationship

I'm making a system that exists a product register, these same products can be part of just one group, or not. I have this model for Products: class Products extends Model { protected $fillable = ['nome', 'codigo', 'preco'];...
asked by 10.11.2018 / 01:39
0
answers

Query MongoDB + Redash

I need to make a query in Redash that generates a Ranking that is usually simple I do an unwind of what I want and use a sort to leave in the descending order, however now I need to make a query that has several "matches" within the matchs check...
asked by 07.11.2018 / 15:04
2
answers

How to display 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 follows: How many years? 12. H...
asked by 07.11.2018 / 17:44
1
answer

How to do a recursive query with stored relations in a JSON array?

I have a MYSQL table that relates to itself. The relationships are represented in the same table by JSON Array . Here is the table and some sample data: CREATE TABLE 'templatedata' ( 'Id' char(255) NOT NULL, 'RelatesWith' json DEFAUL...
asked by 07.11.2018 / 11:51
1
answer

Error deserializing a Json List in Java

This is as follows, I get a list in JSON format. But it seems that there is some kind of nonconformity in the way the JSON is mounted. Follow the code ... I have a client class that looks like this. public final class Cliente { private In...
asked by 04.11.2018 / 01:57
0
answers

How to use socket with JSON-RPC?

I have a class in which I am trying to send a request to the server and receive a json response to handle, but nothing happens. I do not know if I sent the request correctly or when it was time to get it. Follow the code: import java.io....
asked by 03.11.2018 / 21:02