I get data from a JSON file of more than 3 lines and output it to a page via jsrender, but I ran into a problem, in the final objects, at the beginning of the properties, there is a "@" sign. Looks like that:
{ "@Code": "51.51.3", "@Name": "Оптовая торговля сырой нефтью", "@IsMain": "true" }, {{:Data.Report.OKOGU.@Name}} This code retrieves the data.
Error code:
JsRender Error: Syntax error Compiled template code: // jsvTmpl var v,ret="" +"\n " +((v=data.Data@data.Name)!=null?v:"") +"\n\n\n "; return ret; : "illegal character" Via {{props}} {{>key}} {{>props}} displays the keys together with @. The point is these @ when compiling, how to get around it?