PHP Classes

PHP Is JSON Format: Check if a string contains valid JSON encoded data

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 93 All time: 9,900 This week: 660Up
Version License PHP version Categories
is_json 1.0GNU General Publi...5PHP 5, Validation
Description 

Author

This class can check if a string contains valid JSON encoded data.

It takes a string value as a parameter and verifies whether it represents a value in JSON format.

The class may also take values of other types besides strings. In that case, it always returns a result that determines it is not a valid JSON string.

Picture of Ali YILMAZ
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 16 packages by
Country: Turkey Turkey
Age: ???
All time rank: 249042 in Turkey Turkey
Week rank: 206 Up5 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x

  Files folder image Files (3)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (3)  /  src  
File Role Description
  Plain text file is_json.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:93
This week:0
All time:9,900
This week:660Up
User Comments (1)
useless
2 years ago (Viktor)
0%Star