Convert YAML to JSON

python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < file.yaml > file.json
Converts YAML file to JSON. Note that you'll need to install PyYAML. Also some YAML data types (like dates) are not supported by JSON).

By: tebeka
2013-04-24 00:28:55

2 Alternatives + Submit Alt

What Others Think

Any idea how to change the output to have the whole json in a oneliner?
zoobab · 152 weeks ago
Best work you have done, this online website is cool with great facts and looks. I have stopped at this blog after viewing the excellent content. I will be back for more qualitative work. Treatment of varicose veins
KayGasaway · 29 weeks and 6 days ago
We are the leader in total gambling. If you want to find out how to play which website baccarat is good Online baccarat, which website is good? Which website to bet on, or others? We would like you to come and try the impressive service of 789mega with a system that supports tens of thousands of users ???????? ???????? 2021 pantip
KayGasaway · 28 weeks and 3 days ago
Bihar Board 10th Model Paper 2022 Pdf Download for BSEB 10th Question Paper 2022 to Matric Important Question for English ; Hindi Medium Solved Bihar Board 10th Model Paper
KayGasaway · 28 weeks and 2 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..
KayGasaway · 27 weeks and 3 days ago
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. roadrunner email login
KayGasaway · 27 weeks and 1 day ago
Explore about John Barban Javaburn review The 7 Undeniable Facts. In this Java Burn review, we’ll be taking a close look at the product, uncovering 7 undeniable facts about John Barban weight loss packets. John Barban Javaburn review
KayGasaway · 27 weeks and 1 day ago
Countquick Accounting Services is specialised to fix issues when user is unable to send emails through outlook. We also provide help when user cant send invoices and statements. QB Error incorrect password when trying to send emails. Top quality Quickbooks support |18004769446
KayGasaway · 27 weeks and 1 day ago
Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. rr mail
KayGasaway · 27 weeks ago
Pin badges Enamel Badges provides a massive range of custom enamel badges in the UK. we offer soft and hard enamel badges, die struck badges, and printed badges.
KayGasaway · 26 weeks and 5 days ago
Explore Chicago Permit Expediter | Permit Expediting Chicago & Code Compliances Services, The Best Chicago Permit Expediter & chicago building permits, Permit studio offer chicago permit services, IL, As best chicago permit expediter, our team consists of a variety of talented and passionate professionals with backgrounds in architecture, interior design, planning, construction, and project management. Please visit our website for more info, Thank You">here
KayGasaway · 26 weeks ago
King's Kids has caring teachers that use Bible stories and fun activities to teach children about Jesus. Kid's Ministry offers classes and other exciting events for all ages every Sunday morning at 10:00 AM. Ocala.Church offers the most dynamic and spirit filled worship, preaching and teaching available in Marion County, Florida with age specific sessions and content for all age groups. Explore church ocala fl as each service here you’ll find a vibrant multicultural atmosphere with exciting, contemporary worship music and a powerful message that will speak to you where you are at. On Sunday mornings, children are well-cared for in fun-filled Sunday School classrooms. church ocala fl
KayGasaway · 25 weeks and 1 day ago
Plan a visit with Ocala's Pentecostal Church in Florida, From the initial decision to learn more about who Jesus is to your involvement in life-changing ministry, we will lead you step-by-step from healing to growth and into leadership. Begin the Process by clicking here to visit our official website. Thank You. Ocala's Pentecostal Church
KayGasaway · 24 weeks and 4 days ago
Allow QUALITYWEB 360 to do the heavy job for you, A software gestione documentale ?(quality management system software) with its unique features: accessibility wherever you go, security of your data, certificates and acknowledgments.Please visit our website to get free trial of 14 days.
KayGasaway · 24 weeks and 4 days ago
Plan a same day delivery birthday gifts ??Time may be of the essence, but your gift doesn’t have to be any less meaningful. Show how much you care, with these last minute gift delivery options. Celebrate their special day with a bright surprise.
KayGasaway · 24 weeks and 4 days ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work.
KayGasaway · 22 weeks and 6 days ago
the avenir The Avenir | Pricing and Floor Plans | River Valley, Singapore
wenilak444 · 22 weeks and 4 days ago
cape coral fence company We offer Commercial and Residential fence installations and repairs in Cape Coral, SW Florida. Gator Fence Corp is the best fence service company in SW Florida ...
nakav51247 · 22 weeks and 3 days ago
You have performed a great job on this article. It’s very precise and highly qualitative. You have even managed to make it readable and easy to read. You have some real writing talent. Thank you so much. murgee mouse clicker
JaydenShaw · 21 weeks and 2 days ago
I would like to say that this blog really convinced me to do it! Thanks, very good post. detox places near me
JaydenShaw · 21 weeks and 1 day ago
Many Canon Printer users face problems like Canon Printer Support Code 4102 error. There could be many reasons for the 4102 error. Don’t worry, we are here to help you. We are the best technical support company in the USA. Our well expert team will help you to solve technical issue instant
techmatters · 21 weeks and 1 day ago
I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. does coolsculpting for arms work
JaydenShaw · 20 weeks and 5 days ago
I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... how to get thc cartridges shipped
JaydenShaw · 20 weeks and 4 days ago
Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. family law attorney newport pa
JaydenShaw · 20 weeks and 3 days ago
I'm thoroughly enjoying every minute of it. It's a fantastic website with plenty of useful information. Aside from introducing everyone, the stick merge online game is the most popular action game today.
pyscho · 19 weeks and 6 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.">immobilien werlte
JaydenShaw · 19 weeks and 1 day ago
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. mm888bet
JaydenShaw · 18 weeks and 6 days ago
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. ?????
JaydenShaw · 17 weeks and 2 days ago
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! Bike LED Lights Brightest LED Light Kits
JaydenShaw · 16 weeks and 5 days ago ????? ??? ????? ???? SEO ????? ????? ????? ???? ????? ????? ??? ???? ???? ??????? Search Engine Optimization ??? ????? ??????????? ?? ????? ?????????? ????? ????? ?? ????
seofox · 16 weeks and 3 days ago
I want you to thank for your time of this wonderful read!!! I definitely enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog. I am glad to share a brilliant post about BSL Shaders for Android which totally change your Minecraft world's appearance. I hope you will really enjoy this shader pack.
Rosario70 · 15 weeks and 5 days ago
seofox · 15 weeks and 1 day ago
i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. slot tergacor 2022
JaydenShaw · 14 weeks and 2 days ago
Thanks for sharing this valuable content. In my view, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. legal nurse consultant jobs
JaydenShaw · 7 weeks and 6 days ago
?????? ??? ?? ?????? ??????? ???? ??? ?? ?????? ?? ???????? ?????? ??? ????? ?? ?? ?? ?????. ??? ?????? ?? ????? ?????? ????? ?? ??? ????? ???? ?????? ???? ???? ????? ?????? ?????? ? ????????? ????? ?? ??? ???? ?????????. ??? ???????? ?? ???? ????? ?? ???? ?????? ? ??? ????? ?????? ??? ???? ??? ???? ????? ???? ????? ???? ???? ?? ????? ????? ?????? ??? ??? ????? ?? ?????? ????????? ??? ???? ? ????? ?? ??? ???? ??????? ?? ?? ?? ??? ???? ????? ?????.
mohsen1985 · 6 weeks and 1 day ago
On the other hand, every person is exclusive, and it may exit your body really matter of days for some and over 4 months for Other folks. click here
JaydenShaw · 5 weeks and 5 days ago
Login to your TWC Email, or Roadrunner Email Login at, presently known as Spectrum Webmail. Access your Roadrunner email account, figure out how to pursue another Roadrunner account, recuperate your email address, or reset your secret phrase.
andrewcarol058 · 2 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: