Use angular.fromJson