[LRUG] On json and yaml
graham at effectif.com
Tue Apr 29 08:36:49 PDT 2014
On 29 Apr 2014, at 16:28, Rory Sinclair <rory at asmallworld.net> wrote:
> 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.
I agree, but I’d definitely choose JSON. I think it’s less likely to change in an incompatible manner with the passage of time.
I’ve been bitten by supposedly standard serialisation formats evolving in ways that break when read by updated code several times over the years (and one of those formats was Yaml, when a syntax change meant I had to use an old version of Ruby when releasing gems for the best part of a year).
Founder, Agile Planner
https://www.agileplannerapp.com | @agileplanner | @grahamashton
More information about the Chat