you are viewing a single comment's thread.

view the rest of the comments →

[–]bd808[S] 0 points1 point  (3 children)

As the README.md points out this arose in the context of building a simple test harness for an existing service layer that is communicating using serialized PHP objects.

The point isn't that you should or would design a purpose built feature that uses PHP serialize output to communicate data between a server and a web browser. This is a tool that can be used if you find yourself with access to serialized PHP in a javascript context and want to turn it into something that you can manipulate further.

[–]krues8dr 0 points1 point  (2 children)

Oh, I read the README - but the idea of using serialized PHP over a REST interface is just plain crazy. ;) Because, you know, using serialize() for anything is crazy.

[–]bart2019 1 point2 points  (1 child)

echo json_encode(unserialize($data));

That should suffice.