IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Dealing with JSON Arrays and Objects in PHP
editDealing with JSON Arrays and Objects in PHP
editA common source of confusion with the client revolves around JSON arrays and objects, and how to specify them in PHP. In particular, problems are caused by empty objects and arrays of objects. This page will show you some common patterns used in Elasticsearch JSON API, and how to convert that to a PHP representation.