Template readObject