Working with nested JSON Objects in C++

I want to serialize to/deserialize from JSON String to Object.
Everything was fine until I’ve tried to deserialize/serialize nested object.
For example if I have:

class Foo : public FOnlineJsonSerializable
{
   FString a;
   FString b;

BEGIN_ONLINE_JSON_SERIALIZER
  ONLINE_JSON_SERIALIZE("a", a);
  ONLINE_JSON_SERIALIZE("b", b);
END_ONLINE_JSON_SERIALIZER
};

class Bar : public FOnlineJsonSerializable
{
   FString c;
   Foo d;

BEGIN_ONLINE_JSON_SERIALIZER
  ONLINE_JSON_SERIALIZE("c", c);
  ONLINE_JSON_SERIALIZE_SERIALIZABLE("Foo", d);
END_ONLINE_JSON_SERIALIZER
};

It will not see object d during serialization/deserialization. What is proper way to do it ?