<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:49 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>[CXX-2078] Unable to find bsonobj.h</title>
                <link>https://jira.mongodb.org/browse/CXX-2078</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I&apos;m trying to convert a JSON string to Bson Object.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;From Stackoverflow answers, I found that I can use like this,&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
&#160;&#160;&#160;&#160;mongo::BSONObj&#160;object&#160;=&#160;mongo::fromjson(&quot;name:&#160;&apos;hi&apos;&quot;);&lt;br/&gt;
&#160;&lt;br/&gt;
But, VS code display that both mongo and BSON as undefined.&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
This is what I have included&lt;/p&gt;


&lt;p&gt;#include&#160;&amp;lt;bsoncxx/builder/stream/document.hpp&amp;gt;&lt;br/&gt;
#include&#160;&amp;lt;bsoncxx/json.hpp&amp;gt;&lt;br/&gt;
#include&#160;&amp;lt;mongocxx/client.hpp&amp;gt;&lt;br/&gt;
#include&#160;&amp;lt;mongocxx/stdx.hpp&amp;gt;&lt;br/&gt;
#include&#160;&amp;lt;mongocxx/uri.hpp&amp;gt;&lt;br/&gt;
#include&#160;&amp;lt;mongocxx/instance.hpp&amp;gt;&lt;/p&gt;

&lt;p&gt;using&#160;bsoncxx::builder::stream::close_array;&lt;br/&gt;
using&#160;bsoncxx::builder::stream::close_document;&lt;br/&gt;
using&#160;bsoncxx::builder::stream::document;&lt;br/&gt;
using&#160;bsoncxx::builder::stream::finalize;&lt;br/&gt;
using&#160;bsoncxx::builder::stream::open_array;&lt;br/&gt;
using&#160;bsoncxx::builder::stream::open_document;&lt;/p&gt;</description>
                <environment>C++&lt;br/&gt;
Windows</environment>
        <key id="1413919">CXX-2078</key>
            <summary>Unable to find bsonobj.h</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eugenerockley@gmail.com">Eugene Rockley</reporter>
                        <labels>
                    </labels>
                <created>Sat, 18 Jul 2020 00:49:54 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:20 +0000</updated>
                            <resolved>Mon, 20 Jul 2020 14:56:52 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3292396" author="alexander.golin" created="Mon, 20 Jul 2020 14:56:52 +0000"  >&lt;p&gt;Hi Eugene, thanks for your ticket submission - it appears you have figured out the issue you were having so we are closing this ticket. Please let us know if you end up suspecting a bug! &lt;/p&gt;</comment>
                            <comment id="3291068" author="JIRAUSER1254183" created="Sat, 18 Jul 2020 01:01:58 +0000"  >&lt;p&gt;Turns out it merged to&#160;&lt;br/&gt;
bsoncxx::from_json()&lt;br/&gt;
Got it worked.&#160;&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|hxihhj:</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>