Patches: Browse | Submit New | Admin

[#18916] Json parser

Date:
2008-03-18 16:07
Priority:
3
Submitted By:
Carlos Paramio (carlosparamio)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Json parser

Detailed description
This is a patch to support the usage of JSON as the format for API Facebook responses.

Why to care? Because JSON could be desirable when passing the response for example to a Javascript code, but mainly,
because JSON reduces significantly the bandwidth usage compared to XML.

The patch makes significant changes to the Parser class, moving a good part of it to a separated file (xml_parser.rb),
and then creating a new class named JsonParser.

The format for responses can be switched in runtime at the session class (maybe it is interesting to move this to the
service class?).

I hope you find it useful.

Carlos Paramio

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-03-18 16:10
Sender: Carlos Paramio

The diff file.

Attached Files:

Name Description Download
json_parser.diff Json parser Download

Changes:

Field Old Value Date By
File Added3474: json_parser.diff2008-03-18 16:10carlosparamio