You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble replacing specific array items using the @jdt.path syntax as described on the "Replace" wiki page. The @jdt verbs and attributes don't parse or transform when placed under the array object itself. I was able to get this working by moving the @jdt.replace to the top of the object and then drilling down. Is this a bug?
I am having trouble replacing specific array items using the
@jdt.path
syntax as described on the "Replace" wiki page. The@jdt
verbs and attributes don't parse or transform when placed under the array object itself. I was able to get this working by moving the@jdt.replace
to the top of the object and then drilling down. Is this a bug?Sample JSON:
The goal is to change the value of the "Foo" item without knowing the ordinal position or how many objects are in the MyStuff array.
Sample transform 1:
This should work according to the documentation but all I get is the
MyStuff
node literally replaced with the transform syntax.Sample transform 2:
Alternately, if we place the
@jdt.replace
at the root and change@jdt.path
to start from the root and navigate into MyStuff, it works as expected.I'm using Visual Studio 2022 + SlowCheetah 4.0.50 in a .NET Framework 4.7.2 project.
The text was updated successfully, but these errors were encountered: