Em Andamento

Convert XML to JSON using PHP

I have a web service that queries a YouTube API and receives an XML response back (this particular YouTube API method only supports XML). I need to convert the XML response into a particularly formatted JSON response, using PHP.

## Deliverables

Example source XML and output JSON format is included in an attachment. The PHP script you write should take the XML input as a string and echo the JSON output. I put together a short document explaining exactly what fields need to be translated from XML to JSON, and how they should be converted. The left-hand side of the -> symbol is the XML field and the right-hand side is the JSON field. Some of the transformations will involve minor string or attribute processing. Any field that I have not listed here is a low priority and not required for successful completion of the function. 2011-01-11T16:13:[url removed, login to view] -> "updated": "2011-01-11T16:13:[url removed, login to view]" -> "accessControl":{ "syndicate":"allowed", "commentVote":"allowed", "rate":"allowed", "list":"allowed", "comment":"allowed", "embed":"allowed", "videoRespond":"allowed" } GoogleDevelopers -> "uploader":"GoogleDevelopers" -> "player":{ "default":"[url removed, login to view]\u003dADos_xW4_J0&feature\u003dyoutube_gdata_player" } undefined -> "location":"undefined" Education -> "category":"Education" -> "content":{ "1":"rtsp://[url removed, login to view]", "5":"[url removed, login to view]\u003dvideos&app\u003dyoutube_gdata", "6":"rtsp://[url removed, login to view]" } Jeff Fisher walks through basic history and concepts behind the Google Data protocol. Visit the documentation for more information and list of available APIs:[url removed, login to view] -> "description":"Jeff Fisher walks through basic history and concepts behind the Google Data protocol. Visit the documentation for more information and list of available APIs:\r\n\r\n[url removed, login to view]" google, data, gdata, introduction, courses, engineering, gcvprodtuto, plidAB86CD8B942A122B -> "tags":[ "google", "data", "gdata", "introduction", "courses", "engineering", "gcvprodtuto", "plidAB86CD8B942A122B" ] -> "thumbnail":{ "sqDefault":"[url removed, login to view]", "hqDefault":"[url removed, login to view]" } Introduction to Google Data -> "title":"Introduction to Google Data" -> "duration":739 2007-12-21T10:13:[url removed, login to view] -> "uploaded":"2007-12-21T10:13:[url removed, login to view]" ADos_xW4_J0 -> "id": "ADos_xW4_J0" -> "rating":4.53 -> "favoriteCount":104, "viewCount":70762

## Platform

PHP 5.x

Habilidades: Amazon Web Services, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: youtube introduction video, what is.json, the syndicate, string processing in c, r.f. engineering, r architecture, how to string, google web service example, category php id, what is json, php symbol, list of apis, how to write a video script, php introduction, php courses, how to write introduction, youtube vi, write api using php, v8, php json , json, json script, JSON PHP, json c, Fisher

Acerca do Empregador:
( 2 comentários ) United States

ID do Projeto: #3030869

Premiar a:

s17

See private message.

$29.75 USD em 14 dias
(368 Avaliações)
6.5

5 freelancers estão ofertando em média $27 para este trabalho

xpertsoftvw

See private message.

$29.75 USD in 14 dias
(62 Comentários)
6.2
developernoman

See private message.

$29.75 USD in 14 dias
(52 Comentários)
4.8
pbalamurali

See private message.

$17 USD in 14 dias
(22 Comentários)
4.5
pyb

See private message.

$29.75 USD in 14 dias
(35 Comentários)
4.4