kolombet / maashaack

Automatically exported from code.google.com/p/maashaack
0 stars 0 forks source link

Enhancement the prettyprinting feature of the eden serializer. #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enhancement the prettyprinting feature of the eden serializer.

Add an option to return a string with the format :

{{{
prop1 = 2 ;
prop2 = 3 ;
prop3 = "hello world" ;
prop4 = 
[
   { prop5:"foo" , prop6:"bar" }
]
}}}

With the code :

{{{
import system.eden ;

// >> eden.printMode = ???? <<

var o:Object = 
{
    prop1 : 2 ,
    prop2 : 3 ,
    prop3 : "hello world" ,
    prop4 : [ { prop5:"foo" , prop6:"bar" } ]
};

trace( eden.serialize( o ) ) ;
}}}

See the name of the attribute to change the mode of serialization

Original issue reported on code.google.com by ekamel...@gmail.com on 14 Mar 2009 at 10:36

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 22 Sep 2011 at 6:51