<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:19 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[GODRIVER-946] Add IndentExtJSON and MarshalExtJSONIndent functions</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-946</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Add functions to marshal to pretty printed Extended JSON and to directly marshal to pretty printed Extended JSON.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Original Issue:&lt;/p&gt;

&lt;p&gt;Currently, trying to call &lt;tt&gt;json.Marshal&lt;/tt&gt; on a &lt;tt&gt;bson.D&lt;/tt&gt; results in the document being marshalled as a standard array of structs; i.e. you end up with a JSON array of documents containing &quot;Key&quot; and &quot;Value&quot;.&lt;/p&gt;

&lt;p&gt;I&apos;m aware that the go driver also supports encoding to extended JSON, and that does work, but it&apos;s not as usable because it doesn&apos;t support indenting/pretty-printing.&lt;/p&gt;</description>
                <environment></environment>
        <key id="733784">GODRIVER-946</key>
            <summary>Add IndentExtJSON and MarshalExtJSONIndent functions</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="gabriela.asuncion@mongodb.com">Gabby Asuncion</assignee>
                                    <reporter username="bartle">David Bartley</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Tue, 9 Apr 2019 04:58:24 +0000</created>
                <updated>Tue, 2 Nov 2021 18:42:16 +0000</updated>
                            <resolved>Tue, 2 Nov 2021 17:12:21 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4164294" author="xgen-internal-githook" created="Tue, 2 Nov 2021 17:10:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Gabriela Asuncion&apos;, &apos;email&apos;: &apos;gabriela.asuncion@mongodb.com&apos;, &apos;username&apos;: &apos;gabbyasuncion&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-946&quot; title=&quot;Add IndentExtJSON and MarshalExtJSONIndent functions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-946&quot;&gt;&lt;del&gt;GODRIVER-946&lt;/del&gt;&lt;/a&gt;: Add IndentExtJSON and MarshalExtJSONIndent functions (#781)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/15ace228e3bfdf37faa31e558d5eb2745a75469f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/15ace228e3bfdf37faa31e558d5eb2745a75469f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2214731" author="bartle" created="Tue, 16 Apr 2019 09:04:03 +0000"  >&lt;p&gt;Yes, that would be fine.&lt;/p&gt;</comment>
                            <comment id="2214210" author="ian@10gen.com" created="Mon, 15 Apr 2019 20:15:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bartle&quot; class=&quot;user-hover&quot; rel=&quot;bartle&quot;&gt;bartle&lt;/a&gt; would it also satisfy your request if we added pretty-printing for extended JSON?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1900057">GODRIVER-2186</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="733788">GODRIVER-948</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1566504">GODRIVER-1809</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1566504">GODRIVER-1809</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huj83r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>