PHP Classes

Services_JSON package blog

Recommend this page to a friend!

Latest Services_JSON package blog posts

  All package blogs All package blogs   Services_JSON Services_JSON   Blog Services_JSON package blog   Post article Post article  

1. How to Use a PHP json_decode Equivalent Function that Can Decode Objects with Quoted Key Names

Updated on: 2022-12-01

Posted on:

JSON (JavaScript Object Notation) is a popular format for exchanging data structures between applications in many different languages.

PHP provides built-in functions to encode and decode data structure values in JSON format.

Currently, PHP does not support decoding objects encoded in JSON format with the object keys with double quotes.

This package provides a workaround written in pure PHP for decoding objects with or without quotes in the object key names. This possibility overcomes the limitation of the current PHP versions.

It allows the decoding processing of JSON data generated by applications written in other languages or components that do not use quotes to encode object key names.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Services_JSON Services_JSON   Blog Services_JSON package blog   Post article Post article