Get Text from jsoneditor - ace (ajax)

Hi All!

On the web page I need to select text from its json editor ( like ).

Keyword - Get Text - retrieves only the visible part of the json placed in that editor.
I’ve tried get it also this way:
Press Keys {ace_content} CTRL+a {x} Execute Javascript return window.getSelection().toString();
But I got nothing.

Does anyone run into such a problem where was not able to get text from any web page editor?
I’m JavaScript beginner so maybe someone has an idea how the JS “script” should look like?
Maybe there is another solution?

Any advice is appreciated :wink: