[JAVA-1926] In JsonWriter, remove name quotes in SHELL mode Created: 16/Aug/15  Updated: 07/Jan/19  Resolved: 07/Jan/19

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Yann D'Isanto Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

With JsonMode.SHELL ouput mode, properties name should be written without the surrounding quotes.



 Comments   
Comment by Ian Whalen (Inactive) [ 07/Jan/19 ]

Closing as Won't Fix given no other feedback from the community requesting this. If anyone else would in fact like this, please let us know.

Comment by Yann D'Isanto [ 19/Aug/15 ]

Hi Jeff,

Actually I work on the nbmongo plugin of the netbeans ide and, for the next version I'm working on, I'd like to use the JsonWriter in order to allow "mongo shell mode" for document editing (currently it only supports strict json).
So the reason is only for end users experience consistency (editor supporting shell mode but adding unnecessary quotes when opening an existing document). This is not a very big deal (that's why I set a low priority on this issue) but it would be nice to have it resolved

Regards,
Yann

Comment by Jeffrey Yemin [ 19/Aug/15 ]

Since some strings have to be quoted, e.g.

{'x.y' : 4}

we chose to just quote them all rather than looking for special characters, since quoting will always work.

Is there a particular reason why the quotes are causing you a problem?

Generated at Thu Feb 08 08:55:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.