is it possible to convert request preview into JSON?
The preview looks like this:
5b8e6b4b4f0ca1fbcd66e34e: {parentId: "52ff2e04e4b0b193ed664d45", nodeInfo: {position: 102,…}, id: "5b8e6b4b4f0ca1fbcd66e34e",…}
id: "5b8e6b4b4f0ca1fbcd66e34e"
name: "Parental Control"
nodeInfo: {position: 102,…}
description: "Companies that provide parental control solutions to keep children away from online risks"
position: 102
parentId: "52ff2e04e4b0b193ed664d45"
5b8e7c244f0c6c2263aaf8d2: {parentId: "5330677ae4b09e5482339b7a", nodeInfo: {position: 38,…}, id: "5b8e7c244f0c6c2263aaf8d2",…}
id: "5b8e7c244f0c6c2263aaf8d2"
name: "Anti Spyware"
nodeInfo: {position: 38,…}
description: "Companies that provides tools to remove spyware such as adware, keyboard loggers, hijackers etc"
position: 38
parentId: "5330677ae4b09e5482339b7a"
5b8f9d0f4f0c7c4d2daea8e8: {parentId: "52ff2e3de4b0b193ed664d4a", nodeInfo: {position: 42,…}, id: "5b8f9d0f4f0c7c4d2daea8e8",…}
id: "5b8f9d0f4f0c7c4d2daea8e8"
name: "Anti Theft"
nodeInfo: {position: 42,…}
description: "Companies that provide anti-theft solutions with features such as remote lock, remote wipe, theft detection etc"
position: 42
parentId: "52ff2e3de4b0b193ed664d4a"
Is it possible to put this information into a JSON format? Also, I'm interested to have the information presented as: "parentID: xxxxxxx" > "id"
Thanks!
source https://stackoverflow.com/questions/72972155/convert-preview-data-into-json
Comments
Post a Comment