We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4213d5 commit cd1adcdCopy full SHA for cd1adcd
plugin/lib/Aplazame/Sdk/Api/ApiRequest.php
@@ -2,7 +2,7 @@
2
3
class Aplazame_Sdk_Api_ApiRequest extends Aplazame_Sdk_Http_Request {
4
5
- const SDK_VERSION = '0.2.1';
+ const SDK_VERSION = '0.2.2';
6
const FORMAT_JSON = 'json';
7
const FORMAT_XML = 'xml';
8
const FORMAT_YAML = 'yaml';
plugin/lib/Aplazame/Sdk/Serializer/JsonSerializer.php
@@ -18,7 +18,11 @@ public static function serializeValue( $value ) {
18
}
19
20
if ( is_object( $value ) ) {
21
- $value = (array) $value;
+ foreach ( get_object_vars( $value ) as $nestedKey => $nestedValue ) {
22
+ $value->{$nestedKey} = self::serializeValue( $nestedValue );
23
+ }
24
+
25
+ return $value;
26
27
28
if ( is_array( $value ) ) {
0 commit comments