Skip to main content
Hi,

 

 

I am following the example of the village that can be found here: http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/jsontemplater.htm

 

 

my root is the following:

 

 

{

 

    "title": "Atlas de l'immigration - Exemple d'atlas dynamique",

 

    "layers": l

 

        fme:process-features("LAYERS"),

 

    ]

 

}

 

 

my sub names LAYERS is the following:

 

{

 

    "name": fme:get-attribute("fme_basename"),

 

}

 

 

However I got this error:

 

|JSONTemplater(XMLTemplaterFactory):The following error occurred near line 5, column 5 of the query:

 

|JSONTemplater(XMLTemplaterFactory): invalid expression: syntax error, unexpected "]"

 

 

I thought I was following the doc example carefuly. Why this error?

 

Hi,

 

 

you must remove your comma at the end of line 4, as well as on line 2 of the LAYERS sub.

 

 

David

Reply