Questions tagged as 'json'

3
answers

How to pass a json containing data array to Php?

How could you send the following Json to Php without missing the " tabs " part, where you have an array !? The original Json is made up of a single line, so I put it here just to improve the view: {"csTipoPagamento":"20", "csClassificacao":"14...
asked by 02.07.2015 / 04:51
1
answer

Chained Select: how to use to select Brazilian municipalities in a JSON file from select states

EDITION In the future, someone needs the jQuery version. Here is the code: //select encadeado com JSON $('#uf').on('change', function () { var estado = $(this).val(), cidade = $('#municipio'); $.getJSON('json/municipios.j...
asked by 06.12.2015 / 09:11
1
answer

Foreach PHP JSON json_decode How to print sub array

Good morning everyone! My question is as follows. I created a foreach to access the data below an API $token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; $headers = array('Authorization: Token ' . $token); $ch_subs = curl_init(); curl_setopt($ch_subs...
asked by 07.09.2018 / 12:14
0
answers

ERROR: null value in column "id_municipio_id_municipio" violates the non-null constraint [closed]

This error is occurring when I try to persist the screen data to the bank. I checked, by debugging the screen, that the data is being fetched. When the method exits line 33 of the image it goes straight to line 45. Theserverloglookslikethis:...
asked by 28.09.2017 / 22:38
2
answers

Multiple Access-Control-Allow-Origin Domains

I have a page that serves some data in JSON format based on the data received from the database, but I need to release access so that the mobile version can also get such data, how can I put more than one domain in Access-Control- Origin of htac...
asked by 02.02.2017 / 14:07
1
answer

Google API JSON Return

I make a request to a Google API (API Web Service), in which I get a JSON (Matrix) ... My problem is when trying to extract data that are Arrays inside Arrays ... Like field data "Photos", follows a piece of the return JSON. { "html_attribu...
asked by 13.02.2016 / 19:03
1
answer

How do I get the string of a parent JSon or JSon in array format?

I have the following JSON : String json = "{\n" + "\n" + " \"Pessoas\":[\n" + " {\n" + " \"NomeHomem\":{\n" + " \"Idade\":1\n" + "...
asked by 18.06.2015 / 16:13
1
answer

Send and receive image via WebService

I'm developing an app where I need to convert an image to JSON and send it to a WebService. Afterwards I will need to perform the inverse path, that is, receive a JSON image from a WebService and present it to the application user. Well, to s...
asked by 20.05.2014 / 06:41
4
answers

How to convert datetime into abbreviated date brazilian model

I have an object JSON that returns me an attribute datetime . However, I would like to display it in Brazilian short form. Example JUN 24, 2014 . JSON attribute: data { date: "2014-06-16 21:56:29" } I would like to do...
asked by 24.06.2014 / 21:34
0
answers

JointJS: Embed Parents and Children [closed]

Good, I'm working with JointJS but in a dynamic way. At this point I'm trying to embed the 'parent' and 'child' elements. After doing the select with the info of the child and parent, I make a get to go get this information: QUERY <...
asked by 04.12.2015 / 16:14