Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Write JSON data to MongoDB


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: May 2, 2016 11:58 PM Last Post By: Dmitry Arefiev
Bob Johnson

Posts: 28
Registered: 9/11/15
Write JSON data to MongoDB  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 28, 2016 1:23 PM
Is there an example/sample that shows JSON data being written to MongoDB? Something that shows JSON being written to db and then grabbing that data from the db would be awesome. I'm just not visualizing what this looks like. Any help with MongoDB and JSON would be much appreciated!

Thanks!
Dmitry Arefiev

Posts: 1,406
Registered: 12/7/03
Re: Write JSON data to MongoDB  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 2, 2016 11:58 PM   in response to: Bob Johnson in response to: Bob Johnson
You can find FireDAC MongoDB demos at:
Object Pascal\Database\FireDAC\Samples\DBMS Specific\MongoDB

Probably in Restaurants demo you will find required code:
* TfrmMain.btnLoadDataClick - shows how to write JSON document into DB as JSON string
* TfrmMain.btnQueryClick - shows how to query documents
* TfrmMain.DumpCursor - shows how to read JSON document as a JSON string

--
With best regards,
Dmitry
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02