Use JSON serialization instead of haxe.Serializer for SWFLite