Project

General

Profile

Actions

Bug #2002

closed

API: export_database doesn't export correct json

Added by Enric Rodellas over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2023-04-10
Estimated time:
Found in version:

Description

http://localhost:8080/api/0.3/export_database/json exports a mixed json and python dict.
Only is correct labels of first level: "entities", "links", "properties", "geometries". Te content of each section is a python dict not converted to json format

{"entities": "[{'id': 1, 'cidoc_class_code': 'E55', 'name': 'Bibliography', 'description': 'Categories for bibliographical entries as used for example in BibTeX, e.g. Book, Inbook, Article etc.', 'created': datetime.datetime(2023, 4, 9, 10, 21, 15, 740843), 'modified': None,

Anyway, you're doing a great job and API. Congratulations. Enric Rodellas

Actions

Also available in: Atom PDF