Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Serialize
JsonValidator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Serialize
;
7
11
class
JsonValidator
12
{
19
public
function
isValid
($string)
20
{
21
if
($string !==
false
&& $string !==
null
&& $string !==
''
) {
22
json_decode($string);
23
if
(json_last_error() === JSON_ERROR_NONE) {
24
return
true
;
25
}
26
}
27
return
false
;
28
}
29
}
Magento\Framework\Serialize
Definition:
JsonConverter.php:6
Magento\Framework\Serialize\JsonValidator
Definition:
JsonValidator.php:11
Magento\Framework\Serialize\JsonValidator\isValid
isValid($string)
Definition:
JsonValidator.php:19