Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow NewtonsoftJsonSerializer to be parameterized with settings. #989

Merged
merged 1 commit into from May 4, 2017

Conversation

jskeet
Copy link
Collaborator

@jskeet jskeet commented May 3, 2017

This allows custom settings such as turning off auto-magic date
parsing. (We need to turn this off for the BigQuery wrapper library.)

(There are some little presentation tidy-ups in the file as well; I could put those into a separate commit if you'd prefer, but they're pretty simple.)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 3, 2017
Copy link
Contributor

@chrisdunelm chrisdunelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One question

private readonly JsonSerializerSettings settings;
private readonly JsonSerializer serializer;

private static readonly NewtonsoftJsonSerializer instance = new NewtonsoftJsonSerializer();

This comment was marked as spam.

This comment was marked as spam.

This allows custom settings such as turning off auto-magic date
parsing. (We need to turn this off for the BigQuery wrapper library.)
@jskeet jskeet merged commit b4b99c1 into googleapis:master May 4, 2017
@jskeet jskeet deleted the json-serializer branch May 4, 2017 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants