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
6 Réponses
+ 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
+ 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.
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/
0
yes it is not json data. but I am wondering about type of it. it looks like php serialized array but is not
0
when ı migrated my wp blog to another domain, all plugins did not work properly. I looked at the db records and saw it
0
thanks for advice, I will use it