The comments and answers are correct, it is no JSON but indeed a serialized array. The reason you’re having trouble unserializing it is because of the quotes inside the serialized data. David Walsh wrote a neat article about this. The problem is that you can’t simply go into the database and remove these single quotes because the serialized value keeps track of the number of characters in the string (s:6
) so you would also need to update that.
Here’s what David Walsh suggests to get around this issue in the future:
//to safely serialize
$safe_string_to_store = base64_encode( serialize( $multidimensional_array ) );
//to unserialize...
$array_restored_from_db = unserialize( base64_decode( $encoded_serialized_string ) );
Related Posts:
- Using prevNext Modx Addon
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Substring in excel
- What is the difference between POST and PUT in HTTP?
- How does npm start work? What all processes are happening in the background?
- What is the := operator?
- What is Xpenology? Is it Linux related thing?
- Create blank image in Imagemagick
- Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net
- Difference between associative entity and associative relationship attribute?
- max value of integer
- How to install apoc for neo4j?
- Is there a way to get Bing’s photo of the day?
- Chrome: Uncaught SyntaxError: Unexpected end of input
- Muting a Discord user on my Server
- Plot logarithmic axes with matplotlib in python
- Regex lookahead, lookbehind and atomic groups
- PHP – exit or return which is better?
- How do you copy and paste into Git Bash
- What does “?” mean in Java?
- git pull on a different branch
- MIPS fetch address not aligned on word boundary, used .align 4, still no go
- Collapse all methods in Visual Studio Code
- How to resolve ‘preflight is invalid (redirect)’ or ‘redirect is not allowed for a preflight request’
- Implement touch using Python?
- How to override equals method in Java
- How to convert .crt cetificate file to .pfx
- Manually create a pyspark dataframe
- Couchbase query using “\uefff” break the next conditional keys
- VMWare Workstation VM not starting because of locked portion of file
- What is the difference between memoization and dynamic programming?
- How do you loop in a Windows batch file?
- Android Completely transparent Status Bar?
- How to sign-extend a number in Verilog
- How to draw a checkmark / tick using CSS?
- c array – warning: format not a string literal
- Create Hyperlink in Slack
- JMS Topic vs Queues
- How to set the authorization header using cURL
- yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker
- OCaml: Match expression inside another one?
- How can I add numbers in a Bash script?
- Swift protocols: method does not override any method from its superclass
- What is index.js used for in node.js projects?
- Reference Error: moment is not defined (Using moment.js)
- What should be hadoop.tmp.dir ?
- How does DHT in torrents work?
- C++ undefined reference to WinMain@16 (Code::Blocks)
- Lambda Calculus Reduction steps
- JavaScript: IIF like statement
- What is cardinality in Databases?
- What is the relationship between PyTorch and Torch?
- PostgreSQL: Query has no destination for result data
- server error:405 – HTTP verb used to access this page is not allowed
- Subtract 1 day with PHP
- Node inconsistent with parents in JAGS model (R)
- python 3.x ImportError: No module named ‘cStringIO’
- error: unknown type name ‘bool’
- How can I enable Assembly binding logging?
- While running the script throws cannot find module ‘dotenv’
- What makes Lisp macros so special?
- zsh command cannot found pip
- Operator Overloading C++; too many parameters for << operation
- What are the double colons (::) in R?
- Visual Studio 2019 – error MSB8020: The build tools for Visual Studio 2013 cannot be found
- How do you run CMD.exe under the Local System Account?
- VBScript to send email without running Outlook
- Why is Node.js scalable?
- ApiNotActivatedMapError for simple html page using google-places-api
- The correct way to read a data file into an array
- HTTP status code 0 – Error Domain=NSURLErrorDomain?
- How to list all available Kafka brokers in a cluster?
- WordPress localization
- Using stackexchange markup in WordPress (plugin?)
- How to reference a function from a class in a different file which is also namespaced?
- Simple JS function Not Working
- Password protected Profile View
- How to make modifications only to certain elements of an HTML string on the server-side?
- Can't get on my own web page
- Home screen width Stretch [closed]
- Problems with functions.php! Error! [closed]
- Hide Slider on Post Type Page
- Redirect after scrolling the page
- Follow author on muti-user WordPress site
- How to Unban an IP properly with Fail2Ban
- How to see stdout of ansible commands?
- Difference between KVM and QEMU
- Top level domain/domain suffix for private network?
- Are SSD drives as reliable as mechanical drives (2013)?
- The Joel Test for system administrator jobs
- How do I rename a task in Task Scheduled on Windows Server 2008 R2
- How do I get the history of “apt-get install” on Ubuntu?
- Why does x86 represent 32bit when x64 represents 64bit? [closed]
- How to reload screenrc without restarting screen?
- How long before an s3 bucket can be created with same name after deletion?
- Software vs hardware RAID performance and cache usage
- How do high traffic sites service more than 65535 TCP connections?
- Using variables in Apache config files to reduce duplication?
- How to unify package installation tasks in ansible?
- Private IP address in public DNS