Modify simplified_glm to get json string