as3corelib icon indicating copy to clipboard operation
as3corelib copied to clipboard

JSONDecoder constructor is not backwards compatible.

Open mattbryson opened this issue 14 years ago • 0 comments

With the new strict flag, JSON.decode is backwards compatible, however the constructor for JSONDecoder is not backwards compatible, it still expects 2 parameters.

Some libraries use this class directly, and thus are not compatible with the latest as3corelib.

Can you change the constructor to

JSONDecoder( s:String, strict:Boolean=true )

matt.

mattbryson avatar Jan 05 '11 17:01 mattbryson