jpsember / datagen

Jeff's data class generator
MIT License
0 stars 0 forks source link

Python lists of abstractdata objects are being parsed as dicts #12

Open jpsember opened 2 years ago

jpsember commented 2 years ago

The generated java code looks like this:

mC = DataUtil.parseListOfObjects(IPoint.DEFAULT_INSTANCE, m.optJSList(C), false);

jpsember commented 2 years ago

I think the above comment is not the problem... however, this is:

def to_json(self):
    :
    m[Experiment._key_array] = self._array.copy()

The datatype of the array needs to be called recursively to to_json

jpsember commented 2 years ago