Add logging and model to jsonobject