Enhance secondary_index by distinguishing between previous objects loaded from persistence versus new objects created during the session
JSON fix