prepare for jms serializer and json format instead of serializer / unserialize in defualt php