How to parse the next line
var a = JSON.parse('[' + '{"NoteName":"it my life","UserId":"100","NoteActive":true,"UserEmail":" admin@dev.xrc.com ","CreatedDate":"8/13/2012 1:47:35 PM"}' + ']');
You just need to avoid it\'s single quote
it\'s
var a = JSON.parse('[' + '{"NoteName":"it\ my life","UserId":"100","NoteActive":true,"UserEmail":" admin@dev.xrc.com ","CreatedDate":"8/13/2012 1:47:35 PM"}' + ']'); console.log(a);
You can escape (interpret only as characters) quotation marks by using a backslash. "\" "or "\"
Replace it's with it\'s
it's
'[' + '{"NoteName":"it\ my life","UserId":"100","NoteActive":true,"UserEmail":" admin@dev.xrc.com ","CreatedDate":"8/13/2012 1:47:35 PM"}' + ']'
Source: https://habr.com/ru/post/1233230/More articles:How to implement custom template layout in log4j2 - javaHow can I make ViewPager work with RecyclerView inside NestedScrollView - androidAvailable command line options / functions - playframeworkhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1233228/how-to-know-where-to-put-type-hints-to-improve-numeric-performance-in-clojure&usg=ALkJrhjlT4nPeXi0e5sDdrX3kLGt9V0SpQRails 4 ActionController :: InvalidAuthenticityToken error when cookies are not accepted - ruby-on-railsTo tag a video in the lower right corner using ffmpeg - phpauto and static_casts are good practice - c ++knp_snappy page break in generated pdf file - symfonyHow to check if Bluetooth is enabled on the device - windows-10How to assign data to a user-defined table type from a Select query in SQL Server 2014 - sqlAll Articles