Questions tagged as 'json'

3
answers

How to read a .json file in the module.config () of the Angular?

I have a config.json file in the root of my project with some information that can be changed: folder path, etc. I can not create constants (angular.constant) in the code, as I said the values of the file can be changed in production. But...
asked by 28.11.2016 / 12:32
1
answer

How to access properties with "." in the name in a dynamic object

I have the following JSON object: { "odata.metadata":"httpXXXXX", "odata.count":1443, "value":[ { "codigo" : 1 , "nome" : "ABS"} ] } and create an object like this: dynamic categorias = JsonConvert.DeserializeObject(js...
asked by 09.06.2017 / 15:01
2
answers

Synchronizing data on android

So, I'm in a project that needs to save a large mass of data coming from an api json in android's SQLite, something like 20,000 records, so you can work offline with no problems. Only the synchronization of this mass of data is taking a long...
asked by 11.10.2016 / 17:07
2
answers

Getting only 4 items out of 1059 instead of all

I was able to solve my problem of picking up the date. Currently my problem is to get all users for some reason my JSon is only giving 4 items of 1059 and I want to get all of them. <?php function buscaUser($user) { $opts = [ 'http...
asked by 18.10.2016 / 16:18
2
answers

OrderBy with accents

I'm trying to sort out a map with some data, but I can not sort words with accents. They always come last, I need a suggestion to get a map sorted. Follow the code: (function(angular) { 'use strict'; angular.module('orderByExample...
asked by 15.10.2015 / 21:21
2
answers

Show contents of a JSON using PHP and separate the fields

I have the URL of an API that generates a JSON. I have this code below, however I need the separate fields so I can create while of the items and separate type echo $row['nome_marca'] and so on. Any light? <?php header("Content-Type:...
asked by 10.07.2015 / 21:55
2
answers

json path to get api value

How to get the low value of the following api : [{"idreg":"257052","code":"USD","codein":"BRL","name":"D\u00f3lar Comercial", "high":"3.4026","pctChange":"1.143","open":"0","bid":"3.3703","ask":"3.3713", "timestamp":"148182...
asked by 15.12.2016 / 20:45
2
answers

Structure of a chained JSON

I was developing a web application, where I needed to use JSON, I had some problems, but I did. Now I need to leave everything on the dynamic application page, so everything has to be passed through JSON, but I've never done a JSON with multiple...
asked by 18.09.2015 / 18:35
1
answer

Return JSON with date and time

I have a problem to return json with date and time the code is as follows: <?php $sql = "SELECT CRED_NUMERO, MOV_DATAHORA FROM APOIO.LOG_CREDENCIAL_APOIO A WHERE A.CRED_NUMERO = 10734568 AND TRUNC(MOV_DATAHORA) = TRUNC(SYSDATE)"; $conn = oc...
asked by 26.08.2015 / 16:13
1
answer

Transform XML contained in a string into json

Hello, I need to transform an XML contained in a string into json Object. How do I do that? I've tried some native PHP functions without success. <?xml version="1.0" encoding="UTF-8"?> <UDSObjectList> <UDSObject> <Handle&g...
asked by 28.05.2015 / 18:42