当前位置:网站首页>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
边栏推荐
- Business case | how to promote the activity of sports and health app users? It is enough to do these points well
- scikit-learn構建模型的萬能模板
- [code analysis (1)] communication efficient learning of deep networks from decentralized data
- Express②(路由)
- Dynamic subset division problem
- Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
- Yarn online dynamic resource tuning
- Jiannanchun understood the word game
- AttributeError: ‘dict‘ object has no attribute ‘iteritems‘
- websocket
猜你喜欢
freeCodeCamp----time_ Calculator exercise
The latest development of fed digital currency
UML统一建模语言
Special test 05 · double integral [Li Yanfang's whole class]
Express ② (routage)
Choreographer full resolution
神经元与神经网络
Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
Using Baidu Intelligent Cloud face detection interface to achieve photo quality detection
try --finally
随机推荐
elmo(BiLSTM-CRF+elmo)(Conll-2003 命名实体识别NER)
金蝶云星空API调用实践
1256: bouquet for algenon
专题测试05·二重积分【李艳芳全程班】
[code analysis (6)] communication efficient learning of deep networks from decentralized data
STM32 learning record 0007 - new project (based on register version)
[code analysis (3)] communication efficient learning of deep networks from decentralized data
Ptorch classical convolutional neural network lenet
第十五章 软件工程新技术
Multithreading
Leetcode brush question 𞓜 13 Roman numeral to integer
1256:献给阿尔吉侬的花束
UML统一建模语言
AtCoder Beginner Contest 248C Dice Sum (生成函数)
Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"
go 语言 数组,字符串,切片
MySQL [SQL performance analysis + SQL tuning]
力扣刷题 101. 对称二叉树
关于stream流,浅记一下------
Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)