Closed hnicolas-w closed 4 years ago
Tell me if it's good for you i will squash the commits :wink:
Good! You can squash and I will merge
Good! You can squash and I will merge
Done :+1:
@hnicolas-w Great thanks for your PR! I will tag it with v0.7.0
Thanks to you for the lib! I will gladly continue to contribute :smile:
As written in https://github.com/edamov/pushok/issues/82 the library used the
JSON_FORCE_OBJECT
constant in thePayload::toJson()
method. This used to make non-associative array to be outputed as objectsI removed the
JSON_FORCE_OBJECT
option and kept theJSON_UNESCAPED_UNICODE
.Changing the type of the APS key to object in
Payload::getDefaultPayloadStructure()
was enough to make sure the key is always outputed as an object in the json.