Make password object JSON