A valid JSON serialization is an instance of PHP's stdClass. A check with is_object() is not sufficient in this case because it includes everything else that's also a class in PHP. This should help to uncover programming errors like the one in I969d8c4. Bug: T312589 Change-Id: I917d49944497b19909a9a1d1e2861e86e7a0aca8 |
||
|---|---|---|
| .. | ||
| FormatJsonTest.php | ||
| JsonCodecTest.php | ||