Ich spreche eine API an, die API gibt mir Text im JSON Format zurück:
Ich nehme das und hänge davon mehrere aneinander. Das sieht dann am Ende so aus:
JSON
[{"ref":"https://blabla","hash":"3882db"},{"ref":"https://blabla","hash":"3882db"},{"ref":"https://blabla","hash":"3882db"}]
Dann mach ich
AutoIt
$sString = '[{"ref":"https://blabla","hash":"3882db"},{"ref":"https://blabla","hash":"3882db"},{"ref":"https://blabla","hash":"3882db"}]'
_JSON_addChangeDelete($oJSON_Ad, "images", $sString)
$oJSON_Ad = _JSON_Generate($oJSON_Ad)
; Write $oJSON_Ad to file ...
und das klappt auch. Nur in der Datei ist auf einmal der Text mit Escape-Zeichen
und das darf natürlich nicht ![]()
Danke für Hinweise/Hilfe im Voraus.
VG Yaerox