Questions tagged as 'json'

0
answers

I can not do Array (in JSON) in Typescript

Below is the Array I need [ { "id":1, "nome":"LESPAUL", "validade":1525568400000, "dataGerada":1525914000000, "status":true, "itens":[ { "cliente":{ "id":1,...
asked by 12.06.2018 / 01:33
0
answers

The PUT request is not sending the whole object

This is the put I am giving, (below will have the Json that is coming from the body): put(endpoint: string, body: any) { return new Promise((resolve, reject) => { return this.http.put(this.url + '/' + endpoint, body) .subscribe(...
asked by 12.06.2018 / 03:00
0
answers

Limit of rows database Joomla

Good afternoon, I'm trying to limit the display of database results to 200, but when I use the "LIMIT 200" command nothing happens: Follow the code below the connection: <?php if(!defined('_VALID_MOS')){ define('_VALID_MOS', 1); } if...
asked by 04.06.2018 / 18:18
1
answer

Virtual column extracted from a json in MySql does not get NULL

I have a virtual column named '_cpf' which is extracted from the '_document' column in json. Here is the following query: CREATE TABLE 'user' ( '_document' json DEFAULT NULL, '_id' varbinary(32) GENERATED ALWAYS AS (json_unquote(json_extract...
asked by 05.06.2018 / 23:33
1
answer

JSON in Laravel

I would like to know how to send the query data in json through the controller and how the view should receive them. Controller: $dados = $req->all(); $query = ""; if($dados['filter'] == 1) { $query = User::where('id','LIKE','%'.$da...
asked by 29.05.2018 / 16:04
1
answer

Request CUrl does not work depending on JSON size

My problem is that depending on the size of the JSON sent, the CUrl request does not work, that is, if I send 2 photos in JSON , of course, 4 is already reason for TimeOut . The problem is not in API because i...
asked by 29.05.2018 / 19:09
0
answers

Doubt Json MVC Core Razor

I created a method to perform a Insert through Ajax , like this: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenad...
asked by 29.05.2018 / 00:34
0
answers

ListView receive update of different pages

I'm developing a project and to avoid creating screens with similar functions, I've created a generic query display screen. Basically, the user chooses a brand and sets it to the screen with a listview that shows all the brands available, so he...
asked by 05.06.2018 / 13:01
1
answer

Is it possible to separate the value of the JSON item?

Let's say I have an object like this: { "parametros": { "carteira": "RG", "taxaboleto": "0.00", "multa": "0.00", "juros": "0.00" } } Is it possible that I can extract the item's name from the object? For example, the...
asked by 05.06.2018 / 04:55
2
answers

Send Display Text of an Enum by Json

Well, I have an enum for the days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that has a da...
asked by 19.01.2016 / 20:50