chrisbu / dartwatch-JsonObject

JsonObject which allows dot notation access to JSON.parse'd objects. Read the article on http://www.dartlang.org/articles/json-web-service/
http://www.dartlang.org/articles/json-web-service/
MIT License
83 stars 25 forks source link

Caught type 'GrowableObjectArray' is not a subtype of type 'Map' of 'value'. #6

Closed lauterry closed 12 years ago

lauterry commented 12 years ago

The following line

var result = new JsonObject.fromJsonString('["Dart",0.8]');

causes an exception :

Caught type 'GrowableObjectArray' is not a subtype of type 'Map' of 'value'..

Exception ouput highlights the line JsonObject.dart line:14 col:7

My Dart SDK version is 8369.

Thanks

lauterry commented 12 years ago

Replacing Map _objectData; by var _objectData; seems to solve the problem.

May be a temporary workaround for now.

chrisbu commented 12 years ago

Thanks, I'll investigate. I think there must have been quite a few breaking changes in the last couple of weeks.

On 8 June 2012 15:22, LAU Thierry < reply@reply.github.com

wrote:

The following line

var result = new JsonObject.fromJsonString('["Dart",0.8]');

causes an exception :

Caught type 'GrowableObjectArray' is not a subtype of type 'Map' of 'value'..

My Dart SDK version is 8369.

Thanks


Reply to this email directly or view it on GitHub: https://github.com/chrisbu/dartwatch-JsonObject/issues/6

chrisbu commented 12 years ago

Seems to be working ok in build 8942 - must have been a blip. thanks for logging, though.