Questions tagged as 'json'

1
answer

Load combobox with $ .getJSON data

I'm doing a method that goes in the DB does a query and returns the codes. With these codes I load Combobox with their respective items. There are times when it fits right in, there are times when it does not fill ... Any ideas?...
asked by 20.05.2015 / 23:04
1
answer

Fill in Select with optiongroup

I want to create a multiple select like this WhatIwasabletodowasthis What I want is to group all the records of the same group, as organized in the plugin See the code here My json returns this     
asked by 24.05.2015 / 05:32
1
answer

How to access Json object property?

I'm getting via Ajax a Json object, and would like to turn it into a C # object and access its properties. How can I do this? I ended up reversing the name of the variables ( objeto , itens ), the first are the items, and the se...
asked by 22.05.2015 / 14:10
3
answers

Hide JSON element using javascript

I have the following result in JSON: { "name": "test", "count": 5, "frequency": "Manual Crawl", "version": 1, "newdata": true, "lastrunstatus": "success", "thisversionstatus": "success", "thisversionrun": "Wed Jun 24 2015 16:2...
asked by 24.06.2015 / 19:03
2
answers

WebService returns an Array, and I am not able to insert into an ArrayMyClass

{ "cemaden":[ { "codestacao":"520310401A", "latitude":-16.196, "longitude":-52.546, "cidade":"BALIZA", "nome":"Setor Central", "tipo":"Pluviom\u00E9trica", "uf":"GO", "chuva":0.0, "nivel":null,...
asked by 05.05.2015 / 16:17
1
answer

Create input fields according to the size of an array

Good evening, I'm getting via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function (ajax) {...
asked by 21.04.2015 / 04:50
1
answer

Save value geojson

How can I make a geojson to write numbers instead of string. Example: $geojson = array( 'type' => 'FeatureCollection', 'features' => array() ); while( ($registo = mysqli_fetch_assoc($resultado)) !=null) { $fe...
asked by 16.04.2015 / 22:10
2
answers

Persist JSON Postgres / Golang

Hello, is there any way to persist a JSON in postgres with GO language? I do not want to do a manual insert, I want to map my JSON with a struct and persist, similar to hibernate in Java. I found this lib link Convert my JSON to BSON...
asked by 16.04.2015 / 13:36
1
answer

Json line break

I'm trying to develop a system with Node.js and I'm trying to list the database's data in my table, but the data gets all together like this: IstilldonotunderstandmuchaboutJson,isitbecausehe'sthatway? This is my role listing: Usuario.find(...
asked by 03.07.2015 / 18:36
1
answer

ParseJson in Swift - login function

I have a method that does the verification of login and password using REST , but after reading I need to return a Bool value to validate if the login was done. I do not know if I'm doing it the best way, anyway the problem is th...
asked by 15.04.2015 / 04:11