Support JSON type, closes #14.