Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="info"><ac:parameter ac:name="title">Zend_Config_Json</ac:parameter></ac:macro>
<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Config_Json Component Proposal

Proposed Component Name Zend_Config_Json
Developer Notes
Proposers Sudheer Satyanarayana
Zend Liaison TBD
Revision 1.0 - 22 November 2009: Initial Draft. (wiki revision: 27)

Table of Contents

1. Overview

Zend_Config_Json reads a text configuration file whose contents are in JSON format.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will read a configuration file whose contents are in JSON format
  • The component will support configuration sections
  • This component will will not save information to the storage media. Zend_Config_Writer_Json will be proposed once we freeze the specification of this component.

4. Dependencies on Other Framework Components

  • Zend_Config
  • Zend_Json

5. Theory of Operation

This component works much like Zend_Config_Ini and Zend_Config_Xml offering another data format support - JSON.

6. Milestones / Tasks

  • Milestone 1: Complete writing this proposal
  • Milestone 2: Working prototype checked into the incubator
  • Milestone 4: Unit tests exist, work, and are checked into SVN.
  • Milestone 5: Initial documentation exists.

7. Class Index

  • Zend_Config_Json
  • Zend_Config_Writer_Json

8. Use Cases



The wiki doesn't seem to allow me to print curly braces. For now, please assume the contents of the file are enclosed within curly braces.

I have attached the sample JSON configuration file to this proposal.

In a PHP script

9. Class Skeletons



json json Delete
config config Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 23, 2009

    <p>I've actually done some code for JSON in the lab, look here:</p>

    <p><a class="external-link" href=""></a></p>

    <p>Does it do what you wanted?</p>

  2. Nov 23, 2009

    <p>Looks like it does.</p>

    <p>I will go through the code thoroughly this weekend.</p>

    1. Dec 16, 2009

      <p>Any feedback on that?</p>

      1. Dec 16, 2009

        <p>I haven't been able to study the code yet. I will update here when I do.</p>

  3. Jul 22, 2010

    <p>Is there any progress on this? Seems like this would be an easy addition. I can take over if propasal has been abandoned.</p>

  4. Sep 19, 2010


    <p>Feel free to take over.</p>

  5. Oct 15, 2010

    <ac:macro ac:name="note"><ac:parameter ac:name="title">Accepted and Complete</ac:parameter><ac:rich-text-body>
    <p>Stas pointed out this proposal and his code when he completed the Zend_Config_Yaml code, and asked if it could be reviewed. The code was complete, so I finished tests and promoted to trunk alongside the Yaml configuration. I've credited both Sudheer and Stas for the component at this time.</p></ac:rich-text-body></ac:macro>