Standardize toJSON and related

no. we agreed that toJSON returns an object