Check if a string is valid JSON in php
A little function to check if a string is valid JSON (JavaScript Object Notation) or not. It takes json string as a parameter and returns true if it is valid otherwise returns false.
If you want to Create a JSON string from mysql database you may visit here.
If you want to Create a JSON string from mysql database you may visit here.
Check if a string is valid JSON in php
Reviewed by JS Pixels
on
June 29, 2014
Rating:
No comments: