Questions tagged as 'json'

2
answers

How to join the values of an object of a json to an array

I have this JSON. [{ GRUPO1: '3096', PER1: '0', PER2: '0', PER3: '0', PER4: '0', PER5: '0', PER6: '0', PER7: '3096', PER8: '0', PER9: '0', PER10: '0', PER11: '0', PER12: '0', TOTAL:...
asked by 29.08.2016 / 19:50
3
answers

Quit a function from a $ .each

I'm using the $ .each function of jQuery to run a JSON , and given some validation I want to show a alert() , leave the $.each and the function that contains it, I know that return false; leaves the function $.each...
asked by 08.12.2015 / 16:40
4
answers

Can I enter special characters from a JSON?

How can I enter special characters within a JSON? For example, if I have: { "a": "Hola mundo" } and I want to put the word "world" in quotes. Try escaping them and with the HTML code: " The string I show in a web page, but neither of th...
asked by 30.05.2018 / 23:04
1
answer

Apply filters to NoSQL query in MongoDB

I am working on a project that uses a NoSQL database and would like to know how to make a query to filter through the source field of the following data set: { "_id" : ObjectId("55f9ba45647ba23c39207e9d"), "ident" : "66198708-5c...
asked by 10.12.2015 / 21:11
1
answer

What is the difference between declaring a JSON object with: y =?

I've always had doubts about the difference between obj1 and obj2 var obj1 = { propiedad1: String, propiedad2: Boolean, propiedad3: Number, propiedad4: null, propiedad5: "Opcion1" || "Opcion2", propiedad6: { prop...
asked by 23.10.2017 / 18:31
4
answers

Put comments in JSON file in Visual Studio 2015

I am experimenting with the new Visual Studio and I see that in the new project structure and in the configuration the files JSON is used intensively, to the detriment of the XML that was used before in web.config , e...
asked by 09.12.2015 / 12:11
2
answers

How can I traverse a json array and get its values to show them in the view?

My method for accessing a json url is as follows and it works, but now I want to run the json with a for and its'.lenght' but I could not. The json I want to get the urls from is the following link <scriptsrc="https://ajax.googleapi...
asked by 24.04.2016 / 06:20
3
answers

Create a JSON in Javascript

I have some data in some arrays in Javascript and I want to go through those arrays and put the values in a Json, I am tested this code and I am not able to create the Json. To check if I have created it I am trying to print a value in <spa...
asked by 26.03.2018 / 18:37
3
answers

What is the difference between REST and RESTful?

I understand that they are architectures and that the idea of these is once downloaded the web page this does not re-download any HTML or CSS or JS if not, that only makes calls or requests and is answered with JSON     
asked by 13.01.2016 / 23:15
2
answers

Generate table in view through a query to the database. JSON, JQUERY, MVC, .NET

I am new to the forum and I have broken my head all day because I can not solve this. I would greatly appreciate your help. I have a very simple application in c # .net. I need to generate a table from a json that (according to me) contains t...
asked by 28.08.2018 / 00:33