Complete Json encoder for SoftwareCopy, AdminScope, UserScope and relevant test cases