# Some Advanced Notecard Configuration Examples don't work

**URL:** <https://discuss.blues.com/t/some-advanced-notecard-configuration-examples-dont-work/1144>\
**Category:** Uncategorized\
**Created:** [December 20, 2022, 4:49am UTC](https://discuss.blues.com/t/some-advanced-notecard-configuration-examples-dont-work/1144 "2022-12-20T04:49:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphjy](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@ralphjy](https://discuss.blues.com/u/ralphjy)\
**Post date:** [December 20, 2022, 4:49am UTC](https://discuss.blues.com/t/some-advanced-notecard-configuration-examples-dont-work/1144/1 "2022-12-20T04:49:53Z")

</div>

I was trying out some of the JSON examples in the Advanced Notecard Configuration documentation and some were giving me errors. I realized that it was due to comments being used in the JSON.

e.g

> {  
> “req”: “[card.io](http://card.io)”,  
> “i2c”: 24 // 0x18  
> }  
> {  
> “err”: “cannot interpret JSON: string or ‘}’ expected near end of file {io}”  
> }

and

> {  
> “req”: “card.aux”,  
> “mode”: “gpio”,  
> “usage”: [  
> “off”, // AUX1  
> “low”, // AUX2  
> “high”, // AUX3  
> “input” // AUX4  
> ]  
> }  
> {  
> “err”: “cannot interpret JSON: string or ‘}’ expected near end of file {io}”  
> }

If I remove the comments, the code will work. Is there some preprocessor missing to strip the comments? Or are comments not allowed?

---

<div class="post-metadata">

**Author:** ![tjvantoll](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/tjvantoll/32/231_2.png) [@tjvantoll](https://discuss.blues.com/u/tjvantoll)\
**Post date:** [December 20, 2022, 1:42pm UTC](https://discuss.blues.com/t/some-advanced-notecard-configuration-examples-dont-work/1144/2 "2022-12-20T13:42:38Z")

</div>

Hi @ralphjy,

Comments are not allowed in JSON, and at the moment and we don’t have any preprocessor that strips them.

This is good feedback, as I can totally see myself getting confused by the same thing, so I’ll see what I can do to make the docs more clear.

Thanks,  
TJ
