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

Setting IonTextOptions.Json to true results in invalid JSON #67

Open
pbcornell opened this issue Feb 6, 2020 · 0 comments
Open

Setting IonTextOptions.Json to true results in invalid JSON #67

pbcornell opened this issue Feb 6, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@pbcornell
Copy link

The following code

IIonReader reader = IonReaderBuilder.Build("{data: annot::{foo: null.string, bar: (2 + 2)}, time: 1969-07-20T20:18Z}");

TextWriter tw = new StringWriter();
IIonWriter writer = IonTextWriterBuilder.Build(tw, new IonTextOptions {Json = true});
writer.WriteValues(reader);
writer.Finish();
Console.WriteLine(tw.ToString());

produces the following invalid JSON:
{data:annot::{foo:null.string,bar:(2 '+' 2)},time:1969-07-20T20:18:00.0000000+00:00}

@pbcornell pbcornell added the bug Something isn't working label Feb 6, 2020
@jonwilsdon jonwilsdon added this to the GA milestone Feb 10, 2020
@pbcornell pbcornell modified the milestones: GA, Post-GA Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants