Questions tagged as 'json'

1
answer

I'm having a problem with code in the json request generated from php

file query.php <?php //header("Content-Type: application/json; charset-utf8"); header('Content-Type:' . "text/plain"); $baseDado = "teste"; $host = "localhost"; $user = "rafael"; $password = "159"; $ligacao =...
asked by 06.02.2018 / 20:39
1
answer

How to concatenate a javascript object to a post form?

I have an object JSON that I built at runtime, I need it to be sent to my servlet , along with the other form fields, via post, how do I do this? I researched a lot but nothing worked. function createJSON() { layoutColunas =...
asked by 08.02.2018 / 16:51
1
answer

Treat Action Return in JSon Format

Colleagues Devs, I have an application in C # and ASP.NET with an Action that returns an array in JSON. When I return only one string I get handle with javascript now, when I return an array I do not know how to handle it in javascript. Follo...
asked by 06.02.2018 / 11:20
1
answer

Search for and display items of objects nested with JavaScript

I have two lists, the aggregation brings me the categories codes and the categories list brings all the categories that I have registered. I need to look up the categories in categories using the aggregation ids to create a new list only with th...
asked by 29.01.2018 / 17:42
1
answer

How to access attributes of a JSON that was converted with special characters?

I'm consuming the Microsoft translation API, they That is, MICROSOFT returns XML in its API's), I was able to execute everything right, but as I hate working with XML I decided to convert from XML to JSON, with the library Json.NET , the XML...
asked by 15.03.2018 / 16:08
1
answer

Checkbox does not load data returned in json

I'm having trouble loading a checkbox ( <select> ) using C# MVC with Json . The method returns the complete list with objects, but does not load in the select box. My controller: public ActionResult SelecionarRep...
asked by 13.03.2018 / 18:40
1
answer

getJsonObject bring specific field

I have an object that comes when selecting a particular button. The object is coming correct. System.out.println(filter.getJsonObject("cadastro")); Result: {"id":1,"createdAt":"2017-12-22T14:00:55.86","nome":"teste"} However, I need...
asked by 11.01.2018 / 15:25
1
answer

Groovy - JSON List Schema

I have a problem reading a certain part of an xml file that I am transforming into a JSON file. First I get this file with class File and play it in my class XmlParser , responsible for parsing my xml file, then I play on...
asked by 07.12.2017 / 11:45
3
answers

Help to understand localStorage.js

I'd like some help to enter localStorage in javascript . Objective: To make a function of saving information in the input identical to wordpress, example:     InthethirdprintitiswhatIwant,ifitdoesnotenteranythinginthepasswordfield,butalre...
asked by 07.12.2017 / 20:24
2
answers

Consume Json Vuejs2 with Axios

I'm trying a popular list with a JSON, but I'm having problems. I can only make the list by indexing the array, but only one item in the list goes, and I can not get it populated with all the items in the list. I do not know if I can be very cle...
asked by 27.11.2017 / 15:41