JSON, XAML, PowerBoots and PowerShell

by Doug Finke on July 3, 2009

in JSON, PowerBoots, PowerShell, XAML

Miguel de Icaza, head of Mono, tweeted:

migueldeicazaIn 2007 @toshok used JSON instead of XML for XAML. It is wrist friendly, and programmer friendly:http://bit.ly/2fjEpN

The post, titled, why xaml when you can json? shows this snippet and has createFromJSON code.

JSON and XAML

var json = {
  Canvas: {
    name: "Toplevel Canvas",    children: {
      TextBlock: {
        Text: "Hello World"
      }
    }
  }
}

and it converts that to the following xaml:

<Canvas xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” x:Name=”Toplevel Canvas”><TextBlock Text=”Hello World”/></Canvas>

PowerBoots and PowerShell

image

More Information

PowerShell PowerBoots on CodePlex and other blog postings.

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>