Questions tagged as 'json'

3
answers

Referencing an object loaded from a JSON

I try to make a plugin that loads a JSON from google book. In principle it is very simple and I use a single file. The jquery function receives the JSON and with console.log(data) Shows it correctly. The problem comes when I try to print...
asked by 22.12.2016 / 13:23
1
answer

There is some way to automatically fill an array for json

I do a mysql query, the data in the table I load each one in a variable and then I return each one in json, I find it tedious to do field by field, is there any way to do it automatically? this is the code. <?php if (!function_exi...
asked by 12.06.2016 / 00:10
2
answers

How do I code a string in json with php?

hi all I need is to encode a string that is in json format in python is something like this: def queue(self, url, api_user, api_pass, api_version): args = urllib.urlencode({'cmd': 'api_queue_sms', 'username': api_user, 'password': api_p...
asked by 03.04.2017 / 17:47
1
answer

Conditional ng-if cycle using http service on angularjs

I have an http service and with the code I have received 5 ids. I would like to call them using a scope using a cycle if , the json format has as property isFile that if it is false it is a folder and if it is true it is a file. My...
asked by 17.06.2016 / 06:19
1
answer

UIAlertController with activity indicator when loading JSON

I am loading JSON in my UIViewController in the following way and I need to see a UIAlertController with a Activity Indicator that is automatically hidden when the JSON is fully loaded. override func viewDidLoad() { A...
asked by 22.02.2016 / 13:43
1
answer

Parse an NSData to [String: AnyObject]

I'm trying to convert this NSData var elementos = [AnyObject]() let jsonData = try? NSJSONSerialization.dataWithJSONObject(elementos, options: NSJSONWritingOptions.PrettyPrinted) the jsonData constant carries this value: [ { "id" :...
asked by 09.06.2016 / 00:51
2
answers

JSON invalidated when it comes to query php mysql, but it works when it is called json format

After reading hundreds of similar problems and unable to find the solution to the problem, I ask the following. I have a php file where the data is listed by datatables , which come by ajax from another php file. The problem is that when I w...
asked by 04.01.2019 / 04:32
0
answers

Select id dynamics

I have a form that I fill with data of a product. I need to know how I can work with dynamic ids, searching the Internet I learned that brackets should be added at the end of the id in this way: name="id[]" but my problem is that no I kno...
asked by 27.12.2018 / 20:56
2
answers

Manipulate JSON with numeric headers

Good afternoon colleagues, I'm consulting a WS that returns a json like the following. { "data": { "1130987": [ 1130987 ], "1230988": [ 1230988 ], "1331027": [ 133...
asked by 28.12.2018 / 19:04
0
answers

TreeView with Kendo UI and VueJs in laravel

Dear, I can not correctly develop a treeview with Kendo UI and Vuejs in laravel. To unravel the problem, I will describe what I am using. This is what the url of the laravel driver (index) returns, which I will then use with kendoUi to create...
asked by 19.12.2018 / 20:00