Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

xml to json period in the key

Hi Team,

I am trying to convert an XML to JSON and one of the json key has a perid('.') like first.name

I am not able to get the content of that key as I am getting javascript error.

Below is the sample JSON:

{ "first": { "sec.one":{ "third":"fourth" } } }

If I try first.sec.one it trying to get a key with name sec and insode that searching for another key with name as one.

0 1 277
1 REPLY 1
Top Solution Authors