William Denton <wtd@pobox.com>
yaml2json
Submitted by wtd on 16 October 2009 - 11:56pm
A Google search for yaml2json got fewer results than I'd expected, but had an answer, and convert yaml to json led me to another Perl one-liner I note here for reference:
perl -MYAML=Load -MJSON::Any -E 'say JSON::Any->new->Dump(Load(do { local $/; <> }))'
I needed the JSON::Any Perl module, which is libjson-any-perl in Synaptic on Ubuntu. Is it just me or is it hard to find things in Synaptic? How would I search for "json AND perl"? Anyway, searching for "json" and scrolling turned it up.
Reply
"Legendo autem et scribendo vitam procudito." — Marcus Terentius Varro (116 - 27 B.C.)
Navigation
User login
Delicious
- Planning for a Mobile Website | ALA TechSource
- Embedding chat widgets within EBSCO databases - The Distant Librarian
- OpenSTV | Single Transferable Vote and Instant Runoff Voting Software
- 10+ useful code snippets to develop iPhone friendly websites
- Latest Forum Software Reviews | Forum Software Reviews

Recent comments
5 weeks 1 day ago
9 weeks 4 days ago
11 weeks 2 days ago
14 weeks 16 hours ago
14 weeks 4 days ago
18 weeks 1 day ago
35 weeks 2 days ago
42 weeks 2 days ago
44 weeks 4 days ago
45 weeks 16 hours ago