Questions tagged as 'json'

0
answers

Read several Json at a time

Good afternoon everyone. Well, basically my question has me a little stressed, searching the entire web. I have a file folder which is being saved by N Json files, each Json file is constantly being updated (Rewriting itself). Those data t...
asked by 19.09.2018 / 21:52
0
answers

Validation of JSON in Node.js

I am validating the tags of a JSON that is as follows: [{ "Person": [{ "Id": 1, "Type": 1, "Extra": [{ "Number": 88888888, "Code": 506 }], "Personal": { "Name":...
asked by 10.09.2018 / 17:15
0
answers

UnicodeEncodeError: 'charmap' codec can not encode character u '\ u2019'

my code is this and when I search for the band diiv I get this error I understand that it is the closing character of simple quotes but I do not know how to solve it. File "C:\Python27\lib\encodings\cp850.py", line 12, in encode ret...
asked by 07.09.2018 / 05:24
1
answer

Empty JSON objects in Node.js

I have a query, I would like to know how to validate if a JSON object is empty or not, try doing it with "undefined" or null but since I am new in this I am not sure if this is correct. This is my code: var v = {"Mail":"[email protected]","C...
asked by 05.09.2018 / 23:33
0
answers

nodemailer pass json to template

I'm trying to pass a json to an html template to send with nodemailer, this already allows me to send mails perfectly, but I do not know how the json could go. This would be my code js: readHTMLFile('routes/api_mail/report.html', function(err,...
asked by 05.09.2018 / 08:00
0
answers

Failed to return JSON "SyntaxError: Unexpected token in JSON at position 0"

mysqli_connect.php <?php //db details $db_host = '127.0.0.1'; $db_user = 'root'; $db_pass = ''; $db_name = 'db_ws_restphp'; //connect and select db $con = mysqli_connect($db_host, $db_user, $db_pass, $db_name); ?> index.php <?p...
asked by 05.09.2018 / 00:53
0
answers

Python error TypeError: 1535922562 is not serializable JSON

I'm running a script that returns error, but I can not interpret what it refers to. SELECT * FROM tabla WHERE id = 'b827eb9eea3e' AND time BETWEEN 1535922562 AND 1535922562 1535922562 index -3 timezone 1535922562 <type 'numpy.int64'> (6...
asked by 03.09.2018 / 03:32
1
answer

No 'Access-Control-Allow-Origin' header is present on the requested resource (flask - python - js)

The following is the code I use to pick up the URL " link "  (RESTful API - Python and Flask) from flask import Flask, request from flask_restful import Resource, Api from sqlalchemy import create_engine from json import dump...
asked by 31.08.2018 / 20:01
0
answers

selenium IDE .side export to python

When using the selenium IDE, it exports me to .side. There is some way to use it in python. ? to test my website.     
asked by 02.09.2018 / 05:21
1
answer

How to insert an element in an array of jsons from a form?

<script> $(document).ready(function(){ $.getJSON("sampleJson.JSON",function(data){ var sample_data = ''; $.each(data,function(key, value){ sample_data += '<t...
asked by 06.09.2018 / 20:59