Improve API in json component