Trados Studio 2017 - JSON parser customization - JSON Paths?

Hello,

I am trying to parse JSON file in Tradio Studio 2017 but JSON files from customer contain a lot of non-translatable content. How do you add "JSON Paths" to JSON file type settings so that only certain content gets extracted?

Pseudo translated JSON file with "_" below. The content I am looking to exclude is values for "ProductId", "Brand", "Class", "Crop System", "Primary Variety Name", etc. Pretty much everything in this example.
{
"digital-marketing-product": [
{
"PutRequest": {
"Item": {
"ProductId": "_WB1035CL_",
"Brand": "_Westbred_",
"Class": "_UNITED STATES_",
"Crop System": "_HR, DR_",
"Primary Variety Name": "_WB-1035CL+_",
"Adaptation": "_NWR_",
"Herbicide tolerance": "_CLP_",
"Emergence": "_1_",
"Maturity": "_E_",
"Planting Rate": "_M_",
"Trait": "",
"Type": "_A_",


Thank you so much in advance!
Naoko

Parents Reply
  • Hi, Paul

    the JSON filter is a great plugin, but the structure of my JSON file is a little more complex, here's the example of it:

    "ID01": {

    "name": [
    {
    "props": {
    "a": "123",
    "b": "456",
    },
    "text": "text need to translate"
    }
    ],

    ..............

    "ID100": {
    "name": [
    {
    "props": {
    "a: "653",
    "b": "773",
    },
    "text": "text need to translate"
    }
    ],

    as you can see, there are so many IDXX tags( they are random letters and numbers without space), I can't add the Path rules in the JSON filter plugin one by one, is there any regex rules could match this, like     [\a-zA-Z0-9\]\.text    ?  sorry I'm not good at regex. 

Children