<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:38 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>[CDRIVER-164] BCON (BSON C Object Notation) C initializers for BSON</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-164</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;BCON provides for JSON-like (or BSON-like) initializers in C.&lt;br/&gt;
Without this, BSON must be constructed by procedural coding via explicit function calls.&lt;br/&gt;
With this, you now have convenient data-driven definition of BSON documents.&lt;br/&gt;
Here are a couple of introductory examples.&lt;/p&gt;

&lt;p&gt;     bcon hello[] = &lt;/p&gt;
{ &quot;hello&quot;, &quot;world&quot;, &quot;.&quot; }
&lt;p&gt;;&lt;br/&gt;
     bcon pi[] = &lt;/p&gt;
{ &quot;pi&quot;, BF(3.14159), BEND }
&lt;p&gt;;&lt;br/&gt;
BCON is an array of bcon union elements with the default type of cstring (char *).&lt;br/&gt;
A BCON document must be terminated with a cstring containing a single dot, i.e., &quot;.&quot;, or the macro equivalent BEND.&lt;/p&gt;

&lt;p&gt;Cstring literals in double quotes are used for keys as well as for string values.&lt;br/&gt;
There is no explicit colon (&apos;:&apos;) separator between key and value, just a comma,&lt;br/&gt;
however it must be explicit or C will quietly concatenate the key and value strings for you.&lt;br/&gt;
Readability may be improved by using multiple lines with a key-value pair per line.&lt;/p&gt;

&lt;p&gt;Macros are used to enclose specific types, and an internal type-specifier string prefixes a typed value.&lt;br/&gt;
Macros are also used to specify interpolation of values from pointers to specified types.&lt;/p&gt;

&lt;p&gt;Sub-documents are framed by &quot;&lt;/p&gt;
{&quot; &quot;}
&lt;p&gt;&quot; string literals, and sub-arrays are framed by &quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot; &amp;quot;&amp;#93;&lt;/span&gt;&quot; literals.&lt;/p&gt;

&lt;p&gt;All of this is needed because C arrays and initializers are mono-typed unlike dict/array types in modern languages.&lt;br/&gt;
BCON attempts to be readable and JSON-like within the context and restrictions of the C language.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45990">CDRIVER-164</key>
            <summary>BCON (BSON C Object Notation) C initializers for BSON</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="gjmurakami">Gary Murakami</assignee>
                                    <reporter username="gjmurakami">Gary Murakami</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Aug 2012 14:21:59 +0000</created>
                <updated>Wed, 19 Oct 2016 22:33:27 +0000</updated>
                            <resolved>Wed, 1 Aug 2012 15:37:50 +0000</resolved>
                                                    <fixVersion>0.7</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="149475" author="auto" created="Wed, 1 Aug 2012 14:41:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-01T07:40:56-07:00&apos;, u&apos;email&apos;: u&apos;gary.murakami@10gen.com&apos;, u&apos;name&apos;: u&apos;Gary Murakami&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-164&quot; title=&quot;BCON (BSON C Object Notation) C initializers for BSON&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-164&quot;&gt;&lt;del&gt;CDRIVER-164&lt;/del&gt;&lt;/a&gt; - BCON (BSON C Object Notation) C initializers for BSON&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/dc70faf4a02031515c4cd49e03205431729b4017&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/dc70faf4a02031515c4cd49e03205431729b4017&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|hrh6cv:</customfieldvalue>

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