Changed to use JSON and particularised pom