fix json persistence on BaseObject