Having the input txt file , how can I easily convert this into JSON? Each indented line is a new array in JSON. It should look like .
Any suggestions how to do this?
Having the input txt file , how can I easily convert this into JSON? Each indented line is a new array in JSON. It should look like .
Any suggestions how to do this?
Have a look at the JSONTemplater and JSONValidator transformers.
Hope that helps solving your puzzle.
Hi @mjvoorwinden, as @erik_jan suggested, you can use the JSONTemplater to generate a JSON document, but it could be necessary a bit complex procedure to construct nested structure according to indentations of the text lines in this case. I think the attached workspace example provides some tips to achieve the goal: textline2none.fmwt (FME 2017.0)
know where is the data originated from?
Thanks.
Lyes
know where is the data originated from?
Thanks.
Lyes
I believe you need to know the VDI format pretty well before embarking into converting the files into Json . From what I understand it is a BIM format. If you can convert to and intermediary format then you might be able to proceed with the conversion to Json.