<div>
                    Yes, I understand it's valid json, and as in json there's a difference reference but&nbsp;in my special case I'm in erlang and using the erlydtl template and obviously conference.member.volume_in is valid but conference.member.input-volume is not.</div><div><br></div><div>Well, it's not a big deal and I can go over all and replace all '-'s to '_'s before rendering to the template.</div><div><br></div><div>Thanks.</div>
                <div><div><br></div><div>--&nbsp;</div><div>Seven Du</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, September 25, 2012 at 7:58 PM, Michael Jerris wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Typically we use _ for variables and - for params in config. &nbsp;- is still valid in json, you just need to reference it differently. &nbsp;Why would you do anything to modify them?<br>
<br>On Sep 11, 2012, at 12:30 PM, Seven Du &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>
                <div>
                    Hi,
                </div><div><br></div><div>in conference xml_list some tags has "_" but some use "-"</div><div><br></div><div>"_" works well but "-" causing problems e.g. when convert to json it's ok to use conference.last_talking but to get the input-volume value it has to be conference["input-volume"], and in some other cased there's no such work around and I have to go through all tags and replace "-"s to "_"s.</div>
<div><br></div><div>I understand "-" in xml is totally valid but would it be better to keep it consistent ?&nbsp;</div><div><br></div><div><pre style="font-family:Monaco,monospace;border-width:1px 0px 1px 1px;border-style:dotted;border-color:rgb(204,204,204);padding:0.4em 0.4em 0.4em 0.8em;font-size:17px;text-align:justify;background-color:rgb(250,250,253)"><code>        &lt;last_talking&gt;0&lt;/last_talking&gt;
        &lt;energy&gt;300&lt;/energy&gt;
        &lt;volume_in&gt;0&lt;/volume_in&gt;
        &lt;volume_out&gt;0&lt;/volume_out&gt;
        &lt;output-volume&gt;0&lt;/output-volume&gt;
        &lt;input-volume&gt;0&lt;/input-volume&gt;
        &lt;auto-adjusted-input-volume&gt;0&lt;/auto-adjusted-input-volume&gt;</code></pre><pre style="font-family:Monaco,monospace;border-width:1px 0px 1px 1px;border-style:dotted;border-color:rgb(204,204,204);padding:0.4em 0.4em 0.4em 0.8em;font-size:17px;text-align:justify;background-color:rgb(250,250,253)"><code><br></code></pre></div>
                <div><div><br></div><div>Thanks.</div><div><br></div><div>--&nbsp;</div><div>Seven Du</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
            </div><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br>
<span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br>
<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>