Minimal example:
$json = '{"time":1778853048875,"version":"2.31.0","blocks":[{"id":"mhTl6ghSkV","type":"paragraph","data":{"text":"Hey. Meet the new Editor. On this picture you can see it in action. Then, try a demo 🤓"}}]}'
BumpCore\EditorPhp\EditorPhp::make($json)->toArray();
note new Editor
result
[
"time" => 1778853048875,
"blocks" => [
[
"type" => "paragraph",
"data" => [
"text" => b"Hey. Meet the new Editor. On this picture you can see it in action. Then, try a demo 🤓",
],
],
],
"version" => "2.31.0",
]
note how "text" no longer string, but binary, replaced by space and emoji broken
toJson() conversion will not be possible
Minimal example:
note
new Editorresult
note how "text" no longer string, but binary, replaced by space and emoji broken
toJson() conversion will not be possible