Questions tagged as 'json'

1
answer

How to group values of a json

I have a JSON similar to this: [ { "id": 459, "razao_social": "Testosvaldo de Testousa", "cidade": "Testolandia", }, { "id": 472, "razao_social": "teste trr", "cidade": "Belo Horizont...
asked by 04.09.2018 / 16:56
2
answers

String containing numbers only

I need a regular expression for a string to receive only numbers, for example: "12454853", "12", "9012" These are valid, but I need them when a string appears as: "123g123", "123er*" Give it as invalid.     
asked by 26.10.2018 / 19:41
2
answers

Convert search with PyMongo: Dictionary in JSON

I'm using PyMongo to do a search: resultado = db.find_one({'nome':'xpto'}) The result of this search is a dictionary in Python, but I need to convert it to a JSON. What is the best way to do it?     
asked by 04.12.2014 / 18:21
4
answers

Export information from MYSQL to JSON

Sorry for ignorance, I do not understand anything about JSON. I have a website with database in MYSQL that the client needs to export to JSON to integrate with an app. Can you give me a light on where to start? Ex: table with informatio...
asked by 19.07.2017 / 20:54
1
answer

PHP get value from a multidimensional array

$arquivo = '{"nome":"João","cpf":"00000","teste":"ooooo"}'; $dd = json_decode($arquivo, TRUE); foreach($dd as $value) { $nome = $value->{'nome'}; $cpf = $value->{'cpf'}; } I want to get the value of name and cpf from the array but th...
asked by 22.01.2017 / 19:36
2
answers

Popular class with json

I have this json coming from my service { "CorIndicador":"VERMELHO", "DadosIndicador":"{\"Previsto\":25784.686452608872,\"Realizado\":95258.9557949728}", "TipoIndicador":1 } And I have this class public class FaturamentoRespon...
asked by 08.02.2018 / 19:02
1
answer

How do I get the contents of an HTML Table and convert it to a C # List?

I have a html table that is created dynamically by the user. I need to get all the data inserted by it into the table and generate a List so I can save it later to a database. Project data follows: public class Procedimento { str...
asked by 10.07.2017 / 20:31
2
answers

Best solution for Web service Rest [closed]

I wanted to implement a Web Service that would provide data to mobile platforms (Android and iOS), does anyone know the best service I can use for this? I was doing some research and found RESTEasy and JBoss, but as I do not know anyt...
asked by 07.08.2015 / 17:25
2
answers

Connection to DB via php returning json to javascript

I'm trying to connect to bd via php and returning a json to my javascript, but there's something I'm forgetting or doing wrong, since I've tried doing it in many ways but it never returns the value of the an error in some "trycatch" in the middl...
asked by 31.08.2015 / 17:01
1
answer

What's wrong with my Ajax?

My code has no return and I can not figure out why. index.php <form id="login" method="POST"> <input type="text" name="username" placeholder="Usuário ou email" /> <input type="text" name="password" placeholder...
asked by 24.03.2015 / 16:58