当前位置:网站首页>Line feed in string value when sqlserver parses JSON
Line feed in string value when sqlserver parses JSON
2022-04-22 02:23:00 【CSDN Q & A】
The phenomenon and background of the problem
sqlserver analysis json when , If it appears in the string A newline ISJSON() Validation failed
Problem related code , Do not paste screenshots
declare @json nvarchar(4000)
-- If there is no newline character in the string, it can be verified as valid JSON
select @json=N'{
"id": "WakefieldFamily"
}'
select ISJSON(@json)--1==>true
-- If the string contains a newline character, it can be verified as invalid JSON, But actually I need to save these line breaks
select @json=N'{
"id": "WakefieldFamily
123
456
"
}'
select ISJSON(@json)--0==>false
What I want to achieve
I want to keep the newline character in the string and parse it normally json Is there any way ?
Take the answer :
ISJSON How functions are defined
版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204151116521904.html
边栏推荐
- Unity Game Optimization - Third Edition 阅读笔记 Chapter 1 分析性能问题
- Register login 1
- Mysql database fields move up and down
- Window7 activation phone activation notes;
- uniapp处理强制刷新问题
- Header DHCP service configuration
- 68 smart pipe gallery project construction solution
- Shit, someone poisoned my code comments?
- What are the pitfalls of risk control product quota?
- Nacos 为什么这么强
猜你喜欢

Xu Yuandong was invited to share "Ltd digital business methodology" at Shanghai Management Technology Forum

高级UI都没弄明白凭什么拿高薪,劲爆

Page 58 Siemens digital solutions for machine tool industry

Leetcode 566, remodeling matrix

MySQL restores data through binlog

【项目】小帽外卖(七)

Development trend of Internet of things security in 2022

error:there‘s no Qt version assigned to project please assign a Qt installation in qt project settin

51 page digital transformation and informatization planning of the 14th five year plan

详解各类云计算模型,企业如何使用每种模型提高业务生产力?
随机推荐
cv2. What is the custom format of drawcontours()
In PostgreSQL, convert a string to an integer or floating-point type in the query result
Redis 缓存数据库使用 Redis-Shake 做数据同步
编程主要学什么
When people get closer to the industrial Internet, they can see it more and more clearly
Knowledge points of machine learning and deep learning
语义分割之FCN网络详解 全卷积网络
Golang 1.8 generic testing
Tensorflow 2. Chapter 5: Data Preprocessing
Unity Game Optimization - Third Edition 阅读笔记 Chapter 1 分析性能问题
Opencv 4.0 learning notes
Page 50 JD cloud · Ruiqing - building an agile engine for enterprise digital transformation business midrange solution
[PROJECT] small hat takeout (VII)
Flutter跳转界面
illustrator(AI)的画板大小尺寸修改快捷键默认是Shift+O
Leetcode 566, remodeling matrix
The accuracy of Microsoft's new tools is 80%? Programmer: Thank you
Evaluation of arithmetic four mixed operation expression
风控产品定额的陷阱都有哪些?
Detailed explanation of spark SQL underlying execution process