#4 ✓resolved
Guilherme Silveira

allow json retrieval

Reported by Guilherme Silveira | May 31st, 2010 @ 07:35 PM | in upcoming release

Depends on task 1

By doing

resource = Restfulie.at('entryuri').get

Where the resource is an application/json, text/json as, i.e:

{"item":{"name":"product", "price":2}}

resource.item.name # product
resource.item.price # 2

Try using the most important xml unmarshaller in python, in a way it can be changed later:

The get method will retrieve the result, check that "raw" was not invoked, look the Content-type header, and according to its result, using a registering hash, map to a XmlUnmarshaller

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A python port of restfulie

Shared Ticket Bins

Tags

Pages