Update JsonApiView.php

Solve the problem describes in issue #7