Json data editing method and device

The invention relates to a json data editing method and device.The method comprises the steps that a first editing instruction for a json data node is received in a command window, and the command window is located on a command interface of an operating system; obtaining an original json file corres...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: QIN MIN, YAN XINGANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to a json data editing method and device.The method comprises the steps that a first editing instruction for a json data node is received in a command window, and the command window is located on a command interface of an operating system; obtaining an original json file corresponding to the json data node from a file system according to a path parameter in the first editing instruction, and reading the original json file into a memory; mapping the original json file into a tree structure in a memory, and determining a target node, corresponding to the json data node, in the tree structure; and executing editing operation on the target node according to the operation parameter in the first editing instruction, and storing the edited file of the tree structure as a file of a json format in a file system to obtain a target json file. According to the scheme, the target node of the tree structure is modified in the memory, and grammar errors are not easily generated based on tree structure