Wrap native JavaScript objects to be JSON API compliant.