- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
print_r(json_decode('{
"$and": [
{
"groupId": "528cd99874c193fe070000fb"
},
{
"$or": [
{
"startDate": null
},
{
"startDate": {
"$lt": "2014-03-11T00:00:00+01:00"
}
}
]
},
{
"$or": [
{
"endDate": null
},
{
"endDate": {
"$gt": "2014-03-11T00:00:00+01:00"
}
}
]
}
]
}'), true);