Simplifiying JSON serializer.