- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
echo json_encode('name:*br\:Ö');
//echo json_decode('"name:*br\\\\:\u00d6*"');
var_dump(json_decode('{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "name:*br\\\\:Ö*",
"default_operator": "AND",
"analyze_wildcard": "true"
}
}
],
"should": [
{
"match": {
"name": {
"query": "br\\\\:Ö",
"type": "phrase_prefix"
}
}
}
]
}
}
}'));