How to unserialize PHP Serialized array/variable/class and return suitable object in C#

George picture George · Dec 16, 2009 · Viewed 11.8k times · Source

The goal is to unserialize a PHP serialized string and get sutable object in C#

Is there any way to make this possible in C#(.Net)?

To be more specific: We need to make an application which comunicates (Via HTTP) to specific website which returns the needed information. Fortunately/unfortunately we dont have permission to website so the data (array mostly) that is returned from website is PHP serialized.

Answer

Fabian Vilers picture Fabian Vilers · Dec 16, 2009

I suppose using JSON as an intermediary step could be useful.