Implement json extension