Fix json to actually return object