PublicDocuments icon indicating copy to clipboard operation
PublicDocuments copied to clipboard

Transformers to Smart Array items

Open svh1985 opened this issue 6 years ago • 3 comments

I added a transform to a SmartArray item, the only thing is that the random characters are not added. Am I doing something wrong?

image

svh1985 avatar Jul 18 '19 11:07 svh1985

Hello, this issue has been fixed. The problem was due incorrect "Relative" JSON Path generation. The problem lies at nested arrays and JSON Path relative generation. Currently all specific indexes are replaced with [*] when using Relative JSON Path. This is incorrectly implemented and I have fixed the issue where JSONPath Relative is correctly generated taking in account its absolute indexes in arrays when it is needed.

SmartJSONEditor avatar Jul 27 '19 16:07 SmartJSONEditor

Image 2019-07-27 at 10 29 30

SmartJSONEditor avatar Jul 27 '19 16:07 SmartJSONEditor

Relative JSON Path will now be generated taking in account its absolute positions when needed. This opens new functionality for SmartArrays allowing them using JSON Path relative transformers.

$.list[].subjectLines[2][3].SmartArray[4][1][].SmartArray[3].String_0

SmartJSONEditor avatar Jul 27 '19 16:07 SmartJSONEditor