JSON serializer with easy API