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...
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.
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?
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...
$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...
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...
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...
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...
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...
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...