Questions tagged as 'json'

1
answer

Generate array in JSON by PHP

I'm studying a way to send a JSON response from PHP to JS. I've looked at various posts here and in other forums, but I can not find my error. I do a SELECT all of it in a MySQL table through PHP, but when I send it to JS and see the response...
asked by 28.02.2018 / 04:45
1
answer

Round value JSON

In my code, I get a JSON with a value (Example: 6647), and I would like to round it to only 1 decimal place. In the code, I get the JSOn content by the call: render(){ return( <div className="container"> <div...
asked by 24.11.2017 / 11:27
1
answer

Download svg image to present in Android ImageView how?

I have a api link that returns me a json on Android. That json is binded to a class using Jackson. But I need to use the url that is contained in json which is a svg image. I want to use this image to display the image in my custom listview bu...
asked by 19.12.2017 / 19:07
1
answer

Difficulty in generating a JSON object in the correct order

I'm trying to generate a JSON object by following this template: { "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:sch...
asked by 22.11.2017 / 17:25
2
answers

Where in an Array JSON Postgres

How can I do to select only the records that have the value "18" in this JSON ? '{"filtros":[ { "tipo":"caracteristicas", "operador":"=", "valor":{"18":[12]} } ]}' I tried to use the comparison with @&g...
asked by 04.12.2017 / 13:53
1
answer

Run cURL command in an HTML / JS application

I have zero experience in API, JSON, Ajax, cURL, the most I learned in college was basic HTML, CSS, JS and PHP, I already killed myself to search and watch video, but without anyone with experience to help it gets difficult , I'm almost giving u...
asked by 24.10.2017 / 19:32
2
answers

Complete fields without user having to give TAB

When selecting the product in the list of suggestions AutoComplete I have to give TAB to complete the next fields, I wanted as long as the Description field was filled in the other fields were filled without needing the user to use TAB <...
asked by 22.10.2017 / 21:29
2
answers

Complete fields

When selecting the product in the list of suggestions AutoComplete I have to give TAB to complete the next fields, I wanted as long as the Description field was filled in the other fields were filled without needing the user to use TAB. Would yo...
asked by 23.10.2017 / 13:53
1
answer

Create JSON with javascript

I would like to know how to create a json by taking the data from another json using a for var imdb = { "title": "Justice League", "content_rating": "PG-13", "original_title": "", "metadata": { "languages": [ "English"...
asked by 14.11.2017 / 19:01
1
answer

Array in Ionic json file

I have the following JSON document "descritores": [{ "descritor": "texto..", "resultado": [{ "MediaTotal": "81,16" }, { "MediaTotal": "81,16" } ]...
asked by 13.10.2017 / 17:17