Questions tagged as 'json'

1
answer

Error generating a JSON object

I'm trying to create this object: { "schema": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User" ], "endereco": "Rua 0"...
asked by 21.11.2017 / 17:15
1
answer

Change json value

I have the following JSON: [{"id": 1,"preco": "R$50"}, {"id": 2,"preco": "R$70"}] I would like to change the value of 'price' by removing R$ leaving only numbers using javascript or jQuery     
asked by 16.11.2017 / 17:05
1
answer

Use AJAX return in other functions

I have 2 functions: function1 returns a JSON via AJAX and lists the data in an HTML table dynamically, so far everything works. Function2 needs to handle the same data, however, I did not want to make another AJAX request by invoking functi...
asked by 18.11.2017 / 17:23
1
answer

select part of the JSON that was filtered in the where

In the database I have a field called resources, in it I keep the permissions of a user, in the format Json: [ { "rota":"reserva", "sref":"oQueFazer", "ordem":"1", "recursos":[ "index", "show", "stor...
asked by 26.10.2017 / 03:42
3
answers

Get JSON object dynamically

I have jSON that I created and wanted to dynamically grab the array and objects inside it var json = [ {'PHP': [ {'aula1': [ 'txt','O PHP é uma linguagem ...', 'img','cam...
asked by 25.10.2017 / 14:03
1
answer

Populate INPUTS with ajax

I have some fields that I need to populate with AJAX from a SELECT in php. I am already able to fill in the ID field, and CUSTOMER, now the remaining items are missing, such as ENDERECO, CPF, NEIGHBORHOOD, CITY. Ajax $("#resultado").hi...
asked by 29.10.2017 / 02:14
1
answer

Clasture where in field type json no (Laravel + Eloquent)

The problem is the following, I have to bring from a select the permissions that a profile has, only the permissions are in a json field, and because if it is several permissions we have a data collection, I need to do this within a middleware:...
asked by 19.10.2017 / 23:28
1
answer

How to get a list of all moodle questions and alternatives?

Hello, I am developing an android application with java for the moodle platform, and I would like to know if there is any function that returns a list with the quiz question and the alternatives. Something like this: { "question": "1 + 1 vale:"...
asked by 05.11.2017 / 01:01
1
answer

problem reading external Json NODEJS

I have a problem reading an external Json but I can not identify it, I checked json and it appears correct. This would be Json link I checked and it's correct, and before it worked and suddenly stopped SyntaxError: Unexpected end of JS...
asked by 04.11.2017 / 13:36
1
answer

Condition IF-Else ReactJS Json

In the code developed in ReacJS below, it returns a field containing a "displayPortraitLeft" key with values ranging from true to false, and depending on the value (true / false) obtained, would like it to behave differently, another "style in c...
asked by 05.11.2017 / 21:18