Skip to content

Commit

Permalink
fix for issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
elnabo committed Sep 2, 2023
1 parent 1a418bd commit 4299861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/json2object/reader/DataBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class DataBuilder {
else {
var e = switch(field.type) {
case TAbstract(_.get() => t, _) if (t.name == "Any"): macro null;
case TDynamic(_): macro null;
case TLazy(_) | TDynamic(_): macro null;
default: macro new $f_cls([], putils, NONE).loadJson({value:JNull, pos:{file:"",min:0, max:1}});
}
baseValues.push({field:field.name, expr:e #if (haxe_ver >= 4) , quotes:Unquoted #end});
Expand Down Expand Up @@ -934,7 +934,6 @@ class DataBuilder {
}

public static function makeParser(c:BaseType, type:Type, ?base:Type=null) {

if (base == null) { base = type; }

var parserMapName = base.toString();
Expand Down

0 comments on commit 4299861

Please sign in to comment.