METHOD FOR AUTOMATICALLY GENERATING JSON DATA FROM DATABASE DATA, READABLE MEDIUM AND ELECTRONIC DEVICE

Provided are a method for automatically generating Json data from database data, a readable medium and an electronic device. The method for automatically generating Json data from database data comprises: on the basis of target Json data required by a service, presetting a first configuration file c...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: MO, Yuanwu, LI, Guangjun, QIAN, Wenying, ZHONG, Xiaofeng
Format: Patent
Sprache:chi ; eng ; fre
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:Provided are a method for automatically generating Json data from database data, a readable medium and an electronic device. The method for automatically generating Json data from database data comprises: on the basis of target Json data required by a service, presetting a first configuration file containing a hierarchical relationship between target related nodes and a second configuration file containing an identifier mapping relationship of the target related nodes; in response to an instruction for requesting the target Json data, on the basis of the first configuration file and the instruction, generating a task list comprising obtaining the target Json data; on the basis of the task list and the second configuration file, generating an intermediate table containing query statements that query the target Json data; querying and acquiring a data ID of the target Json data from a database on the basis of the intermediate table; and on the basis of the data ID, the first configuration file and the second co