Adding JSON serializer classes.