Questions tagged as 'json'

1
answer

Why does JSON or XML not work?

I have this type: type S struct { a string 'json:"a" xml:"a"' b int 'json:"b" xml:"b"' c time.Time 'json:"c" xml:"c"' } But neither JSON nor XML works: s := S{a: "Olá", b: 42, c: time.Now()} jsonTexto, err := json.Mar...
asked by 27.10.2018 / 11:32
1
answer

$ .post runs twice

I made a code in javaScript in which I make requests in php and with the return of a json I populate my html, the problem is that at some point I need to execute the javaScript code but I can not make it stop, $ .post is triggered at the click o...
asked by 26.10.2018 / 01:53
2
answers

Incorrect jQuery Array

asked by 12.06.2015 / 18:08
1
answer

Get information from a JSON file with spaces

I'm developing an application using JavaScript and I need to get some information from a JSON file, but this file comes with spaces. I wonder if it's possible to get this information even with the spaces? { "Meta Data": { "1....
asked by 27.07.2018 / 03:29
1
answer

Error converting JSON. (com.google.gson.stream.MalformedJsonException)

I'm developing a program that needs to communicate with an online store, all communication is via HTTP requests and has a JSON response. Displays the com.google.gson.stream.MalformedJsonException error. I have checked it several times...
asked by 24.11.2018 / 15:14
1
answer

How to deserialize a geometric polygon with Gson?

I'm using Vraptor 4 and the intent is to create a polygon convert class that does deserialization and which serialize. My problem is just deserializing. How to deserialize a geometric polygon with Gson? Follow the json where I need to deseria...
asked by 17.10.2014 / 15:44
1
answer

Get return in PHP JSON

There is a system that has sent me a return every day, but I am not able to receive the data to record in the bank, can someone give me a light? This is the data sent by the system -H 'Content-Type: application/json' \ -d '{ "uuid":...
asked by 11.07.2018 / 22:21
1
answer

Error npm install angularjs-dragula

I need to install angularjs-dragula ng2-dragula react-dragula At first I had the error: C:\Users\email\Desktop\Parafernalia Test> npm install angular js-dragula --save npm WARN saveError ENOENT: no such file or directory, open 'C:\U...
asked by 05.07.2018 / 16:10
2
answers

response () in XML with Laravel

I have studied about the development of APIs with Laravel, a quick question, is it possible to return an XML instead of a json? instead of doing: return response()->json($json); Do something like: return response()->xml($xml);...
asked by 24.07.2018 / 16:07
2
answers

Calculate total of each row in the table

I'm trying to use JavaScript to dynamically calculate my prices multiplied by the quantities and result in the total for each row, but it calculates the grand total and plays in the last field of the Total column. Like the picture below:...
asked by 26.04.2018 / 19:41