Questions tagged as 'json'

2
answers

Split in reverse order

var itens: "101|102|103|104"; var quebra = itens.split("|"); for (var i = quebra.length - 1; i >= 0; i--) { var unidade = quebra[i]; $("#lista").append("<p>" +getValue(unidade, jsonTitles)+"</p>"); } The result of this...
asked by 24.03.2017 / 18:04
2
answers

How do I remove some data from a JSON and display only the rest?

Hello, I want to print some data from a JSON page in PHP, for example: I have this page here link JSON: { "totalstreams": 1, "activestreams": 1, "currentlisteners": 19, "peaklisteners": 57, "maxlisteners": 500,...
asked by 15.06.2016 / 17:05
2
answers

Browse JSON - AngularJS

I have the following object: { "_id" : ObjectId("5a0ae1a032e3762988cddb11"), "numeroBo" : NumberInt(4), "relato" : "aaaa", "modus" : "bbb", "falhasApuradas" : "aaaa", "eventosDeRisco" : [ ], "acoesCriminosas" : [ ], "alertas" : [...
asked by 14.11.2017 / 13:44
3
answers

Transform string into json

I'm having trouble converting string {data} to Json , I get it separated by commas several times, I would like to convert it to Json to collect the first key var data = [ "$SP", "92", "00:01:36.340", "00:05:48.929\n" ]; var...
asked by 31.10.2018 / 18:14
2
answers

Assign JSON values to simple variables

I'm having trouble reading a JSON that I get: {"data":{"charges":{"data":{"charges":[{"code":10006756,"dueDate":"13/09/2014","link":"https://www.teste.com.br"}]},"success":true} I need to assign these values to my variables, this array will...
asked by 11.09.2014 / 04:38
3
answers

How to list jSON separating key and value correctly

I've created this example to illustrate an attempt to list JSON searching for separate key and value: var meuArray = { "1": "Administra\u00e7\u00e3o", "2": "Agronomia", "3": "Arquitetura e Urbanismo", "4": "Artes C\u00...
asked by 26.01.2016 / 02:47
1
answer

Full Calendar does not respect end date

I created a calendar using Full Calendar, it displays the events, but does not respect the end date, always ends the event the day before, but only on the display. I do not know if this duration field is being respected, but should respect the...
asked by 06.04.2017 / 18:51
1
answer

Share LocalStorage with browsers

Is there any way to share localstorage with multiple browsers? For example, I set localStorage.setItem("lang", "pt"); in Chrome, however, I would like this value to be available in Firefox and other browsers that support LocalStorage....
asked by 01.09.2017 / 15:41
2
answers

Browsing List List in Jquery (JSON)

Well, I have a JSON, which will be returned by an ajax, with the following structure: { "ExtensionData": {}, "CodCli": null, "Codigo": 0, "Data": "/Date(-62135589600000)/", "Detalhes": { "ExtensionData": {}, "Carregamento": "001 - JUND...
asked by 24.04.2015 / 16:20
1
answer

Why is this json invalid?

Why this json is valid: { "query":"mutation{ createCard(input: {pipe_id: 426174 fields_attributes: [{field_id: \"o_que\", field_value: \"Igor\"}{field_id: \"idade\", field_value: \"21\"}{field_id: \"cidade\", field_value: \"Vila Velha -...
asked by 10.04.2018 / 16:16