Translating json with only specific elements

Dear team,

I have a couple of following JSON files and I want to extract only the text from following elements: heading, description, button_text, title, editor, text, _title

https://we.tl/t-SP20FHEU5W

I tried by copying the Path from Notepad+, but it copied only the direcet path to the very element and the next one is not extracted. E.g.:

.content[0].elements[0].elements[1].settings.slides[0].heading

I tried to remove the numbers in brakets and it showd nothing at all:
.content.elements.elements.settings.slides.heading

Please, help me write the path so that it exports the text from the elements:  heading, description, button_text, title, editor, text, _title

Maybe it is better if the exact level of the path is not specified?

My Trados verion: Trados Studio 2022 SR2 - 17.2.9.18688

Sotir

emoji
Parents Reply
  •  

    Maybe use something like these JSON paths for example:

    $.content[*].elements[*].elements[*].settings.title

    $.content[*].elements[*].elements[*].settings.slides[*].heading

    $.content[*].elements[*].elements[*].settings.slides[*].button_text

    That seems to work for me testing just these three to give you the idea:

    Screenshot of a JSON file named 8386.json opened in a preview window, displaying a list of settings titles and button texts in Dutch, such as 'Geselecteerd door Povis', 'De kassa die met u meegroeit', and 'Lees meer'.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:25 PM (GMT 0) on 26 Feb 2024]
Children