Aus einer Json Datei die Url rausbekommen
Hallo liebe Ninox Nutzer. Ich habe ein Resultat aus einer API abfrage bekommen und will aus dem Resultat den Url-Link (https://chalvicloud.de/index.php/s/qEDj6yzSTKPMGk2) rausbekommen und in ein URL Feld setzten. Wie bekomme ich es hin? Bin für jede Hilfe dankbar.
{"result":{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"id":"404","share_type":3,"uid_owner":"victor","displayname_owner":"Victor Sudermann CHALVI/CWBL","permissions":17,"can_edit":true,"can_delete":true,"stime":1680608102,"parent":null,"expiration":null,"token":"qEDj6yzSTKPMGk2","uid_file_owner":"victor","note":"","label":"","displayname_file_owner":"Victor Sudermann CHALVI/CWBL","path":"/NINOX/Tshirt.png","item_type":"file","mimetype":"image/png","has_preview":true,"storage_id":"home::victor","storage":6,"item_source":470954,"file_source":470954,"file_parent":470785,"file_target":"/Tshirt.png","share_with":null,"share_with_displayname":"(Geteilter Link)","password":null,"send_password_by_talk":false,"url":"https://chalvicloud.de/index.php/s/qEDj6yzSTKPMGk2","mail_send":1,"hide_download":0,"attributes":null}}}}
4 Antworten
-
Wenn die Daten in einem Textfeld liegen, dann etwa so
let content := parseJSON(Text); content.result.ocs.data.url
Wenn Du sie direkt kopierst und dann in eine Variable legst, dann so
let content := { result: { ocs: { meta: { status: "ok", statuscode: 100, message: "OK", totalitems: "", itemsperpage: "" }, data: { id: "404", share_type: 3, uid_owner: "victor", displayname_owner: "Victor Sudermann CHALVI/CWBL", permissions: 17, can_edit: true, can_delete: true, stime: 1680608102, parent: null, expiration: null, token: "qEDj6yzSTKPMGk2", uid_file_owner: "victor", note: "", label: "", displayname_file_owner: "Victor Sudermann CHALVI/CWBL", path: "/NINOX/Tshirt.png", item_type: "file", mimetype: "image/png", has_preview: true, storage_id: "home::victor", storage: 6, item_source: 470954, file_source: 470954, file_parent: 470785, file_target: "/Tshirt.png", share_with: null, share_with_displayname: "(Geteilter Link)", password: null, send_password_by_talk: false, url: "https://chalvicloud.de/index.php/s/qEDj6yzSTKPMGk2", mail_send: 1, hide_download: 0, attributes: null } } } }; content.result.ocs.data.url
Content aside
- Status Answered
- vor 1 JahrZuletzt aktiv
- 4Antworten
- 50Ansichten
-
2
Folge bereits