Moved JSON serializer to different package.