Thanks, Bruno!
I realized blueimp upload, with next snippet:
$migx = [];
foreach ($images as $i=>$image) {
$migx[] = [
"MIGX_id" => $i + 1,
"image" => $image,
"deleted" => "0",
"published" => "1",
"published_ro" =>
[
"MIGX_id" => 2,
"name" => "published",
"use_as_fallback" => "\\",
"value" => 1,
"clickaction" => "switchOption",
"handler" => "\\",
"image" => "assets\/components\/migx\/style\/images\/cb_ticked.png",
"idx" => 1,
"_renderer" => "this.renderSwitchStatusOptions",
"selectorconfig" => "\\"
]
];
}
return json_encode($migx);
Works well. Close topic.
[ed. note: alexbom last edited this post 7 years, 2 months ago.]