Add ast module to support json

now, response which is in str format is returned as json!