[Cod-bugs] error with file json created in queries on chemical elements

Corrado Cuocci corrado.cuocci at ic.cnr.it
Fri Sep 7 16:39:31 EEST 2018


Dear developers of COD,

in this period we are working to a new tool able to visualize e load 
file directly in EXPO program by using your RESTful API. You can see a 
short description of this tool at 
http://www.ba.ic.cnr.it/softwareic/expo/file/

I have seen that the file json created when you perform query with the 
keywords el1,el2,...,el8 or nel1,nel2,...,nel4 is not readable.
To reproduce the error:

1) Try for example to download the file json for a query on compounds 
with V and O

http://www.crystallography.net/cod/result.php?el1=V&el2=O&format=json

2) Now read the file COD-selection.json using for example the following 
command
python -m json.tool <COD-selection.json
and you will obtain the following error
No JSON object could be decoded.

If you open the file with editor you will see at the beginning of the 
file some characters that make the file non readable as json file.

Best regards
Corrado
-- 
============================================
Cuocci Corrado
Istituto di Cristallografia - CNR
Via G. Amendola,122/o
70126 Bari (Italy)
tel: +390805929161
fax:+390805929170
corrado.cuocci at ic.cnr.it
============================================


More information about the Cod-bugs mailing list