Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

can't set value in jolt with modify-overwrite-beta

avatar
New Contributor

I want to create new node(seed) and set value to that
but my code not working. I this my path in modify-overwrite-beta is wrong.

 

"ai":{
      "model_structure":{
            "backend":"tensorflow",
	    "seed":100,
             "model_type":"Deep"
   }
{
    "operation": "modify-overwrite-beta",
    "spec": {
      "jobInput": {
        "ai": {
          "common": {
            "seed": "=@(ai.model_structure.seed)"
          }
        }
      }
    }
  }

 

1 REPLY 1

avatar
New Contributor

it is the answer
```

{
"operation": "modify-overwrite-beta",
"spec": {
"jobInput": {
"ai": {
"common": {
"seed": "@(4,ai.model_structure.seed)"
}
}
}
}
}



@(4,ai.model_structure.seed) means backward 4step on json tree and use seed with path(ai.model_structure.seed).