Questions tagged as 'json'

1
answer

I can not load a JSON on a select

I appear undefined repeatedly in a select. I charge it this way: function listarcategorias(){ accion="listadocat"; $.ajax({ type: "POST", url: "../gestionweb/includes/php/getcategoria.php",...
asked by 14.09.2018 / 11:41
1
answer

Change image play to pause of an audio player with angular 6

I have made an audio player that contains a Play button and a drop-down made with a switch. Well, the player works and if you press play, it plays the song and if you give it back to the button, the song stops. My problem is that I can not modif...
asked by 21.11.2018 / 13:23
1
answer

Save form values in LocalStorage / JSON - JavaScript

I'm trying to save the values of a form in the LocalStorage to then pass it to JSON, all in JavaScript, I appreciate a help with this, this is the code I have. CODE: var theForm = document.querySelector("#form"), valores = []; [].forE...
asked by 31.08.2018 / 20:47
1
answer

Validate array within a JSON in node.js

I need to validate the fields within the "Extras" array, they are really "Number" and "Country_code", I also need to be able to obtain the values. HELP PLEASE !! "Persona": [ { "Nombre":"Maria", "Apellido":"Vargaz",...
asked by 01.09.2018 / 17:36
1
answer

Failure jquery in function associated with submit button

Hi, I'm following an ajax tutorial that I can not get it to work. Apparently he can not even do the function funcPrincipal () {$ ('# miFormu'). on ('submit', executeAjax);} in main.js Could someone tell me what's wrong? Here I put the files:...
asked by 29.08.2018 / 17:58
2
answers

Remove duplicates of an array of JSON objects in javascript (Angular 5)

I am trying to eliminate the duplicate elements inside a json object that is in an array but I can not do it, try with filter and with map but it seems that I can not access the json object, that is, I refer to it, here I show a example of the a...
asked by 11.08.2018 / 20:31
2
answers

How to send information from a UserControl to a JSON file using Json.net? in C # - WindowsForms

I have a UserControl that I created dynamically from the main form class of the same project. I need to send all the information (Name, Tags, Positions etc) of that UserControl that I am creating dynamically to a JSON file. I'm using the JSON.NE...
asked by 21.06.2018 / 09:34
1
answer

Connect thymeleaf with a list of objects

I am currently using these technologies SPRING MVC HIBERNATE JPA THYMELEAF JACKSON JSON create a form where you sent a recipe-type object @GeneratedValue(strategy = GenerationType.AUTO) @Id private int id; private String nom...
asked by 06.06.2018 / 07:52
1
answer

Filter information in python dictionaries dynamically

First of all, I want to say that I am understanding how to filter the information in the Python dictionaries from a JSON and then write them in a JSON file. I take a normal workflow on the basis that we do not always know exactly what we should...
asked by 24.07.2018 / 18:28
1
answer

Iterate a JSON and access keys blindly. Angular2

I return from the beginning to Restructure all the question: I will receive the detail of a Master / detail of AgGrid, the problem is that I do not know how many elements I will receive or what is the key that I will receive, since they will...
asked by 15.05.2018 / 16:24