TransWikia.com

How to render json data with @ character in its key using handlebars?

Stack Overflow Asked by desu sai venkat on December 16, 2021

This is my json data

var data = {[email protected]: true}

In my template i am trying this way to display data but its not working

{{data.[[email protected]]}}

I even tried this way

{{data.['[email protected]']}}

and also

{{[email protected]}}

but if i had changed my json data to

var data = {john:true}

and try

{{data.[john]}}

its working and displaying the output as true

Can anyone please point me where i am making mistake ?

One Answer

It is like this data["[email protected]"]. Here is a good Resource to read

Answered by Evgeny Klimenchenko on December 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP