Questions tagged as 'json'

2
answers

Turning return Json into object list C #

I have a request for an API that returns me the following JSON: {"champions":[{"id":266,"active":true,"botEnabled":false,"freeToPlay":true,"botMmEnabled":false,"rankedPlayEnabled":true},{"id":201,"active":true,"botEnabled":false,"freeToPlay":t...
asked by 03.03.2016 / 17:16
2
answers

Turn image into Base 64

I am transforming an image that I send by the camera in base64 but the image is all black, I do not know what is wrong, it follows my code below app.encodeImageUri(mediaFiles[i].fullPath); //Aqui envio o caminho da minha imagem da seguinte man...
asked by 21.08.2015 / 20:53
1
answer

JsonConvert returns exception in XmlNode

I was trying to convert Json to Xml so it made it easier to read. And I used the following code ... using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Diagnostics; using System.Xml; u...
asked by 22.11.2015 / 22:10
1
answer

How to load JSON into MySQL, including JSON specific fields [closed]

Can anyone help me with a question that is killing me? First, I'm trying to load this JSON into MySQL { "business_id": "fNGIbpazjTRdXgwRY_NIXA", "full_address": "1201 Washington Ave\nCarnegie, PA 15106", "hours": { }, "...
asked by 30.07.2015 / 04:45
1
answer

How popular select with 2 json parameters

I'm making a form, and I have not found anything similar in the searches I've done. I have the code link I am getting popular they usually, When selecting a date, it populates the region, when the popular region populate a professional,...
asked by 18.06.2015 / 06:04
2
answers

Angularjs ng-options: Use object property as value instead of array index

In the code below, AngularJS ng-options renders the value but records the position in the array and not the value. I get the following json: [{"iduniforme":1, "nomeuniforme":"Uniforme 5 itens", "itensuniforme":[{...},{...},{...},...
asked by 18.06.2015 / 16:20
1
answer

Autocomplete: JSON + PHP

With the codes below my output that comes after typing "Al" is only "Albania", and it comes duplicated in autocomplete. The result that comes in the chrome console is: > {"0":"Albania","country_name":"Albania"} When I run the query in th...
asked by 25.09.2015 / 04:42
1
answer

How to separate a string into several in java?

My problem is basically the following, I have a JSON code that takes the data from a URL, and returns it to me (Values are in Long) 528593 444218 5693595 2466912 2466435 However, it returns this to me in a single variable (in this case, "wt...
asked by 05.03.2015 / 20:05
1
answer

JSON-RPC or RESTFULL?

Between developing an API using JSON-RPC or REST (RESTFULL), I would like to know in which cases there are advantages / disadvantages in using one or the other. OBS: It can be through knowledge / experience or reference sources.     
asked by 08.06.2015 / 16:36
2
answers

How to get multiple JSONObject with the same key?

Basically, I have this JSON: {"gameId":467366059,"mapId":11,"gameMode":"CLASSIC","gameType":"MATCHED_GAME","gameQueueConfigId":4,"participants":[{"teamId":100,"spell1Id":4,"spell2Id":14,"championId":157,"profileIconId":588,"summonerName":"MEDA...
asked by 07.02.2015 / 03:51