convert use json_encode with JSON_FORCE_OBJECT