You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When I serialize an object of a class I get a JSON with this format:
{
"field1": "value1",
"field2": "value2",
...
"fieldn": "valuen"
}
For example:
{
"id": 1,
"name": "name",
"surname": "surname"
}
And i want get the following:
{
"entity_name":
{
"field1": "value1",
"field2": "value2",
...
"fieldn": "valuen"
}
}
For example:
{
"user":
{
"id": 1,
"name": "name",
"surname": "surname"
}
}
Is there any way?
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry for the long feedback loop. The issue in this case can be solved using a custom handler.
The issue in this case is too specific to be included as core featrue of this library.
This issue is probably already solved.
(if not feel free to re open the issue or to comment here)
Hello,
When I serialize an object of a class I get a JSON with this format:
{
"field1": "value1",
"field2": "value2",
...
"fieldn": "valuen"
}
For example:
{
"id": 1,
"name": "name",
"surname": "surname"
}
And i want get the following:
{
"entity_name":
{
"field1": "value1",
"field2": "value2",
...
"fieldn": "valuen"
}
}
For example:
{
"user":
{
"id": 1,
"name": "name",
"surname": "surname"
}
}
Is there any way?
Thanks!
The text was updated successfully, but these errors were encountered: