Add features to config and get elements json.