Must read article by Jeff Ward:
ECMAScript programmers (JavaScript, ActionScript, etc) are familiar with writing object literals in JSON notion. This appears to work in Haxe, but you’ll quickly run into pitfalls and type issues. A bit of background about the Haxe type system will help you avoid a lot of frustration.