On 2014-07-21 15:00, jcbollinger wrote:


On Monday, July 21, 2014 12:00:35 AM UTC-5, Atom Powers wrote:

    I think you should be able to send json to the yaml backend and it
    will work. I did some testing with hiera and had no problem with
    pure yaml, pure json, or a mix of the two.


Yes, JSON is more or less a subset of YAML.  I don't recall at the
moment what prevents JSON from being a complete subset, the kinds of
JSON structures you're likely to want to use for your external data
should all be fine.

JSON can only do simple values (string, number), lists and hashes. YAML can additionally reference entities across the document (creating loops) and do all sorts of other nasty things that rubyists found funny to put into a serialization format.


Regards, David
--
* Always looking for people I can help with awesome projects *
G+: https://plus.google.com/+DavidSchmitt
Blog: http://club.black.co.at/log/
LinkedIn: http://at.linkedin.com/in/davidschmitt

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53CD261C.1090802%40dasz.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to