How to build cross-platform mobile apps using nothing more than a JSON markup
Ethan
1.8K55

JSON is a fashionable buzzword, indeed. But maybe you might make the whole thing even easier to write (especially for non-programmers) by using YAML? YAML is a superset of JSON, so all existing apps will still be perfectly okay, but humans could actually write fewer quotes, commas and brackets!

head:
title: login
body:
style: # maps!
border: none
background: "#646464"
header:
title: Sign in
style: { background: "#646464", color: "#ffffff" } # braces!
sections:
- items: #lists!
- type: space
height: 10
- type: textfield
name: email
style:
size: 20
color: "#8bb92d"
font: HelveticaNeue-Bold
background: "#575757"
padding: 20
placeholder: enter email
- type: space
height: 5

All you need to do is to change your parser, otherwise the structure of JSON and YAML is identical — there are maps and lists.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.