using haxe own Json version
using haxe version of Type
better string printing

+ \\r
+ \\\\