当前位置:网站首页>Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
2022-04-23 16:43:00 【Hair loss programmer】
Problem description
nodejs adopt require Read local json The file appears Unexpected token / in JSON at
position

Solution
Read the json There are comments in the document , Just delete all the comments
版权声明
本文为[Hair loss programmer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231400278488.html
边栏推荐
- There is a problem with the light switch from 1 to 100
- Deeply understand the relevant knowledge of 3D model (modeling, material mapping, UV, normal), and the difference between displacement mapping, bump mapping and normal mapping
- Install MySQL on MAC
- Use if else to judge in sail software - use the title condition to judge
- LVM and disk quota
- Summary according to classification in sail software
- PyTorch:train模式与eval模式的那些坑
- How magical is the unsafe class used by all major frameworks?
- How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
- Set cell filling and ranking method according to the size of the value in the soft report
猜你喜欢

JMeter installation tutorial and solutions to the problems I encountered

TypeError: set_figure_params() got an unexpected keyword argument ‘figsize‘

扫码登录的原理你真的了解吗?

人脸识别框架之dlib

DDT + Excel for interface test

Set cell filling and ranking method according to the size of the value in the soft report

Use case labeling mechanism of robot framework

Cartoon: what are IAAs, PAAS, SaaS?

Force buckle - 198 raid homes and plunder houses

英语 | Day15、16 x 句句真研每日一句(从句断开、修饰)
随机推荐
Differences between MySQL BTREE index and hash index
Installation and management procedures
Day 10 abnormal mechanism
Gartner publie une étude sur les nouvelles technologies: un aperçu du métacosme
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
OMNeT学习之新建工程
磁盘管理与文件系统
How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
Real time operation of vim editor
Use if else to judge in sail software - use the title condition to judge
Change the icon size of PLSQL toolbar
Phpstudy V8, a commonly used software for station construction 1 graphic installation tutorial (Windows version) super detailed
深入了解3D模型相关知识(建模、材质贴图、UV、法线),置换贴图、凹凸贴图与法线贴图的区别
Bytevcharts visual chart library, I have everything you want
【PIMF】OpenHarmony啃论文俱乐部—在ACM Survey闲逛是什么体验
Talk about browser cache control
Postman batch production body information (realize batch modification of data)
Flask如何在内存中缓存数据?
JMeter installation tutorial and solutions to the problems I encountered
Nacos 详解,有点东西