How to Validate JSON in Javascript - Tutorial and Example
Barely Coding with Daniel Bark
I showcase a function called isValidJSON that validates a string to be valid JSON or not. I code in Node.js and write a few tests in Jest to make sure the function works as expected. Then i write some documentation for the function according to JSDoc.
Link to the code: https://github.com/danba340/js-awesome-snippets
Thanks for visiting my channel. Sub if you like the content :)
If you want to talk code on Twitter: https://twitter.com/barelydaniel
0:00 Intro 1:20 Jest Unit Testing 6:10 JSDoc 7:42 Outro ... https://www.youtube.com/watch?v=Hg3CAwEpHZ8
2021-03-20
0.0 LBC
Copyrighted (contact publisher)
55176111 Bytes