returning hidden ids with the toJSON method