SmartJSONEditor / PublicDocuments

Public Documents
MIT License
51 stars 10 forks source link

Transformers to Smart Array items #7

Open svh1985 opened 5 years ago

svh1985 commented 5 years ago

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

SmartJSONEditor commented 5 years ago

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 commented 5 years ago
Image 2019-07-27 at 10 29 30
SmartJSONEditor commented 5 years ago

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