0

What is type of that?

hi, I am wondering about type of encoded string like that. a:2{s:3{"xyz"}, s:0{""}} and is there any viewer of it. like json viewer etc

18th May 2017, 11:04 PM
Mehmet AYDIN
Mehmet AYDIN - avatar
6 ответов
+ 1
You're right - PHP serialization looks very similar. Either do JSON. I dont thinks is standard format. Where is it come from? BTW, here are common serialization formats https://en.wikipedia.org/wiki/Comparison_of_data_serialization_formats Comparision of example arrays below in article
20th May 2017, 1:47 PM
Radek S
Radek S - avatar
+ 1
Did You managed db migration already? I can advice You to use plugin that can handle this for You, for example WP Migrate DB - it handle serialized data pretty well. According to this: https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/functions.php#L325 - Wordpress uses standard PHP serialization functions, so looks like something corrupted Yours.
20th May 2017, 2:21 PM
Radek S
Radek S - avatar
0
It doesn't look like valid JSON. It's actually serialized array: ["xyz",""] a is for array, 2 indicates elements count s is string 3 string length "xyz" string 'content' s - string 0 - string length "" string 'content' If You need JSON formatter here is good one: https://jsonformatter.curiousconcept.com/
20th May 2017, 1:12 PM
Radek S
Radek S - avatar
0
yes it is not json data. but I am wondering about type of it. it looks like php serialized array but is not
20th May 2017, 1:14 PM
Mehmet AYDIN
Mehmet AYDIN - avatar
0
when ı migrated my wp blog to another domain, all plugins did not work properly. I looked at the db records and saw it
20th May 2017, 1:55 PM
Mehmet AYDIN
Mehmet AYDIN - avatar
0
thanks for advice, I will use it
20th May 2017, 2:28 PM
Mehmet AYDIN
Mehmet AYDIN - avatar