Changing Object init

Make sure that the init is called after the JSON call