Skip to content

aklump/collection_json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to create a collection object programatically

Creating objects from JSON strings

The key method will be \AKlump\Http\CollectionJson\CollectionBase::import, which converts JSON strings into the appropriate object based on it's format.

You can also create a Collection object from json using Collection->setContent().

Converting objects to JSON

Cast any object to string to get it's JSON equivalent.

Converting from Collection+JSON to JSON

Take a look at the class CollectionJsonToJson.

About

Php objects for working with hypermedia Collection+JSON (http://amundsen.com/media-types/)

Resources

Stars

Watchers

Forks

Packages

No packages published