jonnyreeves / as3-vanilla

Extract strongly typed Objects from dynamic objects without writing a single line of code!
http://www.jonnyreeves.co.uk/2011/08/getting-started-with-vanilla/
MIT License
81 stars 15 forks source link

Complex vectors #4

Closed mayakwd closed 11 years ago

mayakwd commented 11 years ago

Hello! Vanilla can't parse complex vectors like:

var data : Object = JSON.decode('{"value": [[1,2,3],[2,3,4],[3,4,5]]}');
var cards : Cards = extract(data, Cards);

public class Cards {
  public var value : Vector.<Vector.<uint>>;
}

The vectors are created, but are filled with incorrect values

jonnyreeves commented 11 years ago

Thanks for the report, just got back from holiday :)

I see you have fixed this bug with tests in your fork, would you like to raise a pull request for that and I can get it merged back in?

Thanks!

jonnyreeves commented 11 years ago

Duplicate of #5