当前位置:网站首页>nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
2022-04-23 14:01:00 【脱发程序员】
问题描述
nodejs通过require读取本地json文件出现Unexpected token / in JSON at
position
解决方案
读取的json文件中有注释,把注释全删除了就可以了
版权声明
本文为[脱发程序员]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43479772/article/details/119731949
边栏推荐
- JS 力扣刷题 103. 二叉树的锯齿形层序遍历
- 读了一篇博客,重新理解闭包整理一下
- 1256:献给阿尔吉侬的花束
- 2022年江西最新建筑八大员(质量员)模拟考试题库及答案解析
- Problems encountered in the project (V) understanding of operating excel interface poi
- Jiannanchun understood the word game
- Un modèle universel pour la construction d'un modèle d'apprentissage scikit
- Express②(路由)
- JS force deduction brush question 103 Zigzag sequence traversal of binary tree
- SSM project deployed in Alibaba cloud
猜你喜欢
How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
freeCodeCamp----time_ Calculator exercise
1256:献给阿尔吉侬的花束
Elmo (bilstm-crf + Elmo) (conll-2003 named entity recognition NER)
Interesting talk about network protocol
第一章 电商秒杀商品回顾
About note 1
redis如何解决缓存雪崩、缓存击穿和缓存穿透问题
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
Ptorch classical convolutional neural network lenet
随机推荐
Wechat applet
多线程 @Async 线程池
How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
Express middleware ③ (custom Middleware)
美联储数字货币最新进展
第一章 电商秒杀商品回顾
SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
Scientists say Australian plan to cull up to 10,000 wild horses doesn’t go far enough
Android interview theme collection
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
Solution of discarding evaluate function in surprise Library
Problems encountered in the project (V) understanding of operating excel interface poi
第十五章 软件工程新技术
接口文档yaml
初识go语言
1256: bouquet for algenon
Interesting talk about network protocol
Force deduction brush question 101 Symmetric binary tree
读了一篇博客,重新理解闭包整理一下
趣谈网络协议