2 Bug fixes

1. special characters in added texts make json_decode() failed
2. assign default value to field user.groups