I've encountered an issue when the links for a json object are created. The code I'm generating forms a json object with a value of:
{
"payload" : {
"data": {
"id": "test for it",
"type": "tests"
}
}
}
after passing this object through the mapper the expected link to be created should be encoded for urls like this:
{
"data": {
"id": "test for it",
},
"self": "/tests/test%20for%20it"
}
instead it is being created this way
{
"data": {
"id": "test for it"
},
"self": "/tests/test for it"
}
Is it the expected behavior ?