Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

if json valide js

function IsJsonString(str) {
    try {
        JSON.parse(str);
    } catch (e) {
        return false;
    }
    return true;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: force page to reload on back button 
Javascript :: javascript for loop starting from end 
Javascript :: react typewriter 
Javascript :: vuex-module-decorators access other state 
Javascript :: sequelize limit 
Javascript :: how to get contrast from a color using js 
Javascript :: console.table javascript 
Javascript :: refresh event in javascript 
Javascript :: react image 
Javascript :: vue data 
Javascript :: node js get input from console 
Javascript :: style before javascript 
Javascript :: iffi in js 
Javascript :: Using "requireCordovaModule" to load non-cordova module "xcode" is not supported 
Javascript :: change padding javascript 
Javascript :: image base64 to file javascript 
Javascript :: jest-environment-jsdom cannot be found 
Javascript :: getters in nuxt vuex acccessing 
Javascript :: javascript create element in a new line 
Javascript :: style react background 
Javascript :: js check if two array have the same element 
Javascript :: isset js 
Javascript :: character limit regex 
Javascript :: js import export es5 
Javascript :: toggle bollean value in js 
Javascript :: javascript iterate over chars in string 
Javascript :: reactjs get checkbox value 
Javascript :: how to shuffle an array javascript 
Javascript :: convert fetch data to json 
Javascript :: elevation react native 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =