Implement json to object mapping