<div style="font-family: Helvetica; font-size: 13px;">Agree with Sasha’s summary.  With regards ‘issues in interpretation when its parsed’, I think the key thing is to never modify yaml or json files by hand - always use the tooling to generate and write the files, even for simple modifications.  I’d say this goes for CSV too (non-obvious handling of commas in value data).<div><br></div><div>So, provided you use Ruby to actually generate, write and then read the yaml or json or <insert format> files, and provided those formats have rules to handle escaping / encoding problematic content, you should be fine.</div><div><br></div><div>HTH</div><div><br></div><div>Regards</div></div>
                <div><div><br></div><div>-- </div><div>Rory Sinclair<br></div><div>Head of Technology</div><div>ASMALLWORLD</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, 29 April 2014 at 14:48, Sasha Gerrand wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div dir="ltr"><div><div>On 29 April 2014 08:25, MG Lim <span dir="ltr"><<a href="mailto:mirageglobe@gmail.com" target="_blank">mirageglobe@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div>

<div>I am building an automated bash script in ruby. Just wondering if anyone has pointers for using either json or yaml as store for this.</div><div><br></div><div>for example....</div>
<div><br></div><div>yaml</div><div><br></div><div>list:</div><div>  script a: </div><div>    - clear</div><div><br></div><div>or </div><div>json</div><div><br></div><div>{</div><div>  "script": "clear"</div>


<div>} </div><div><div><br></div><div>Contents are all bash scripts with labels. My key concern is if there are issues in interpretation when its parsed.</div></div></div></blockquote></div><br>It appears like you are building script runner which uses a hash for the execution information, with the scripts to be executed as the keys and the values/options being passed to the script as values or nested arrays of values. I wouldn't see any major issues with using JSON or YAML as the storage format, however there may be requirements for this runner which haven't been detailed yet.</div>

</div>
</div><div><div>_______________________________________________</div><div>Chat mailing list</div><div><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></div><div><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>