首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我正在尝试使用Studio3T在mongoDB中插入查询,但始终得到这个错误

我正在尝试使用Studio3T在mongoDB中插入查询,但始终得到这个错误
EN

Stack Overflow用户
提问于 2022-04-06 18:12:58
回答 8查看 2.4K关注 0票数 1
代码语言:javascript
复制
{
    "_id" : ObjectId("5c139771d79ac8eac11e754a"),
    "title" : "API",
    "content" : "API stands for Application Programming Interface. It is a set of subroutine definitions, communication protocols, and tools for building software. In general terms, it is a set of clearly defined methods of communication among various components. A good API makes it easier to develop a computer program by providing all the building blocks, which are then put together by the programmer."
} 
{
    "_id" : ObjectId("5c1398aad79ac8eac11e7561"),
    "title" : "Bootstrap",
    "content" : "This is a framework developed by Twitter that contains pre-made front-end templates for web design"
} 
{
    "_id" : ObjectId("5c1398ecd79ac8eac11e7567"),
    "title" : "DOM",
    "content" : "The Document Object Model is like an API for interacting with our HTML"
}

这是我得到的错误:- JSON parsing error: Orphan character detected at line 1, col 471

EN

回答 8

Stack Overflow用户

发布于 2022-04-07 11:20:51

尝试将这三个文档复制并粘贴到Studio3T中,它们将被导入。Insert document (单数)选项用于插入单个文档。

票数 1
EN

Stack Overflow用户

发布于 2022-06-22 16:21:35

找到了一条路。右键单击并选择IMPORT > JSON,然后从剪贴板中选择粘贴,它将在那里粘贴您的示例代码。然后按“计划”中的“运行”按钮,加载“任务”选项卡。它将把这些代码/文章添加到您的文章集合中。

票数 1
EN

Stack Overflow用户

发布于 2022-10-10 08:00:35

  1. 右键单击集合名称,(在左侧连接列表中)
  2. 单击Add/Edit验证器,在提示窗口中将验证级别设置为“OFF”,然后单击“保存”。
  3. 右键单击查找查询提示中的任意位置,然后选择“文档”,单击“插入文档”,然后逐个复制,单击add.

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71771756

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档