Questions tagged as 'json'

1
answer

Rename ImageView to Upload

Good morning, I would like to ask a question, my APP so far the guy takes a picture of the phone and stays in an ImageView (Ex: img1), I need to create a name defined by me in a variable example: 04102018_Foto1.jpg, would have some way so I c...
asked by 04.10.2018 / 16:56
1
answer

Convert Json to a Csharp Object [closed]

public IActionResult MoedaTurismo() { try { RestClient restClient = new RestClient(); RestRequest restRequest = new RestRequest(); restRequest.AddHeader("cache-control", "no-cache");...
asked by 10.12.2018 / 15:21
1
answer

ERROR TypeError: Can not read property

I have to click a button on an html page and trigger a function in the component.ts called TestTest, however I'm getting an error message (error image) front image component.tsimport{Component,Input,Output,EventEmitter}from'@angular/cor...
asked by 28.09.2018 / 22:51
1
answer

How to assign a Json source from an interface

   I'm trying to generate an interface from a Json file but this one   giving error, what would be the error in my code? export interface Compra { event: string; timestamp: number; custom_data: number; value:...
asked by 11.09.2018 / 19:09
1
answer

Why does not this work?

   .rb: 2: in 'read': No such file or directory @ rb_sysopen -   GameSettings.json (Errno :: ENOENT) I'm trying to make a game in ruby using gosu , and to be able to change the name of the game without having to change all the...
asked by 04.09.2018 / 03:18
1
answer

How do I get the result of a JSON where the result is HTML and in Ionic's View render HTML?

I have a JSON where the contents of some fields are HTML, I would like to display the HTML in the view of Ionic already rendered. This is JSON: [{"data":"2018-09-05","categoria":"1","desafio":" \r\n Burp 20x1<\/li>\r\n Teste 30x4<\...
asked by 05.09.2018 / 19:05
2
answers

Show Value in Json + Mysql + PHP

I need to do this, but coming from the database .... I do not know how to do it function decodificar($id) { if ($id == '1') { return json_encode( array( 'id' => '1', 'desc' => 'descricao do produto',...
asked by 17.09.2018 / 17:45
1
answer

AJAX function to update table

I have this function in AJAX to update the data of a table, the data is coming correct from the controller, however it does not update with the correct data, it updates blank. function buscaFornecedores(id) { var url = "/Produto/BuscaFornecedor...
asked by 08.08.2018 / 19:00
1
answer

AJAX updating the wrong table

I have this AJAX function to update a table, it looks like this: function incluirFornecedor(idItem) { var url = "/Produto/incluirFornecedorN"; $.ajax({ url: url , data: { id: idItem } , type: "POST" , d...
asked by 09.08.2018 / 16:20
1
answer

Read / Search information inside a Json with PHP

I'm starting now with the most complex queries within PHP. As I have always played WoW I decided to learn a little about API with PHP using the Blizzard API that gives me some information. After much searching I was able to pull the informati...
asked by 29.08.2018 / 17:29