add json format to HasMany