Questions tagged as 'json'

2
answers

How to return a part of a string (an html element) in php?

I am making a "technical resource" to be able to return the status of the SEFAZ servers issuing invoices using PHP. For this, I have so far the code below: function get_content($URL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNT...
asked by 23.12.2015 / 03:15
1
answer

Updating data in a module with AngularJS

I'm developing an application with angular and I'm calling a webservice that returns me a JSON and wanted to know how I can update this Json from time to time with angular, could anyone give me a help?     
asked by 23.12.2014 / 14:43
2
answers

How to use the date parameter of the $ .ajax

Is it possible to send two JSONs at the same time as the data parameter value of jQuery.ajax ()? Is there any way to call these two arguments, since I need to call these two json and display on the screen? Follow the code below: var to...
asked by 27.01.2015 / 00:29
2
answers

Is it a good practice to store a JSON object in a data-attribute?

<button type="button" class="btn btn-info btn-lg questao" data-json="" data-toggle="modal" data-target="#myModal">Open Modal</button><BR/> <button type="button" class="btn btn-info btn-lg questao" data-json="" data-toggle="mo...
asked by 25.03.2016 / 01:34
2
answers

Function calling $ .getJSON () returns undefined

I'm trying to get data from a JSON via javascript with the getJSON function from Jquery, but it's returning undefined. Here is the code: $(document).ready(function(){ $("#log").append(pegaPrev("São Paulo-SP")); }); function pega...
asked by 09.03.2016 / 22:38
1
answer

How to delete texts in parentheses with regExp?

I'm developing an HTML5 application that uses the Wikipedia API to give the definition of what we ask. I used the code they made available in a forum in another Stack language, and in it I noticed the use of regular expressions to eliminate cert...
asked by 29.11.2014 / 02:35
1
answer

write json file in the database

Is it a good idea? I was thinking of doing a project where the user will create several elements dynamically (tables, choose a certain option, fill etc), these dynamically generated elements should be saved in the database to be updated, modi...
asked by 05.08.2015 / 02:27
1
answer

How to use Elasticsearch next to MySQL? [closed]

I want to use elasticsearch to see if I can agility and speed in my MySQL queries. I started to see a few things, but I found the issue of integration with MySQL a bit confusing, does anyone have any experience with elasticsearch, and can you...
asked by 30.01.2014 / 20:12
3
answers

Deserialization of JSON

I'm having difficulty deserializing this JSON: string json = "{\"Cidade\":[\"Arrio do Sal\",\"Atl\u00e2ntida\",\"Bom Princ\u00edpio\",\"Brochier\",\"Cachoeirinha\",\"Canaos\",\"Canela\",\"Canoas\",\"Cap\u00e3o da Canoa\",\"Cidreira\",\"Distr...
asked by 16.11.2018 / 17:09
1
answer

Get data via JSON by URL in C #

I need to get data via JSON, through a URL, this link: link I'm trying with the code below, but I already get error as soon as it downloads the string. The error you received is:    The character string is not in JSON format. Howe...
asked by 12.06.2018 / 04:51