<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Crear JSON con PHP</title> <atom:link href="http://blog.unijimpe.net/crear-json-con-php/feed/" rel="self" type="application/rss+xml" /><link>http://blog.unijimpe.net/crear-json-con-php/</link> <description>Desarrollo Web, SEO, Adsense</description> <lastBuildDate>Tue, 07 Feb 2012 18:58:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Giacomo</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-42914</link> <dc:creator>Giacomo</dc:creator> <pubDate>Fri, 02 Sep 2011 14:38:44 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-42914</guid> <description>Hola sr unijimpe, fue aquí donde aprendí a usar json y trabajarlo con flash, pero ya hace un tiempo tengo un problema, quizá usted tenga la respuesta. He generado un json con php ademas le agregué una session al archivo que lo genera, el print sale perfecto, pero el problema es que al recibirlo en flash no lo acepta y tira error como si el json estuviese mal parseado, le quito la session y anda bien. Crees usted que exista una forma de realizar lo que intento? Saludos y gracias.</description> <content:encoded><![CDATA[<p>Hola sr unijimpe, fue aquí donde aprendí a usar json y trabajarlo con flash, pero ya hace un tiempo tengo un problema, quizá usted tenga la respuesta.<br /> He generado un json con php ademas le agregué una session al archivo que lo genera, el print sale perfecto, pero el problema es que al recibirlo en flash no lo acepta y tira error como si el json estuviese mal parseado, le quito la session y anda bien. Crees usted que exista una forma de realizar lo que intento? Saludos y gracias.</p> ]]></content:encoded> </item> <item><title>By: R.Eder Weiss J.</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-41066</link> <dc:creator>R.Eder Weiss J.</dc:creator> <pubDate>Sat, 06 Nov 2010 18:37:05 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-41066</guid> <description>Muy interesante que a partir de la versión 5.2.0 de PHP se añadieron las funciones json_encode y json_decode, y si las combinamos con la funcion $.getJSON del JQuery las posibilidades sobre la Web son infinitas, muy buena la informacion, Excelente, aplicare estos ejemplos practicos en un nuevo proyecto PHP!!</description> <content:encoded><![CDATA[<p>Muy interesante que a partir de la versión 5.2.0 de PHP se añadieron las funciones json_encode y json_decode, y si las combinamos con la funcion $.getJSON del JQuery las posibilidades sobre la Web son infinitas, muy buena la informacion, Excelente, aplicare estos ejemplos practicos en un nuevo proyecto PHP!!</p> ]]></content:encoded> </item> <item><title>By: Gustavo</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-40625</link> <dc:creator>Gustavo</dc:creator> <pubDate>Sat, 07 Aug 2010 04:00:06 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-40625</guid> <description>Muy bueno como siempre lo voy a probar!</description> <content:encoded><![CDATA[<p>Muy bueno como siempre lo voy a probar!</p> ]]></content:encoded> </item> <item><title>By: Luis</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-36299</link> <dc:creator>Luis</dc:creator> <pubDate>Wed, 24 Mar 2010 21:02:18 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-36299</guid> <description>Muchisimas gracais!! me sirvió mucho!!</description> <content:encoded><![CDATA[<p>Muchisimas gracais!! me sirvió mucho!!</p> ]]></content:encoded> </item> <item><title>By: Pablo2</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-34373</link> <dc:creator>Pablo2</dc:creator> <pubDate>Fri, 24 Jul 2009 20:38:10 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-34373</guid> <description>incluir prototype.js y en el body dentro de un tag javascript poner ___________var obj=encode($comunas_rm)); ?&gt;; var s=&#039;&#039;; $A(obj).each(function(item){ if(!Object.isUndefined(item.value) &amp;&amp; !Object.isUndefined(item.text)){ s+=&#039;&#039;+item.text+&#039;&#039;; }else if(!Object.isUndefined(item.group) &amp;&amp; !Object.isUndefined(item.options)){ s+=&#039;&#039;; $A(item.options).each(function(item2){ if(!Object.isUndefined(item2.value) &amp;&amp; !Object.isUndefined(item2.text)){ s+=&#039;&#039;+item2.text+&#039;&#039;; } }); s+=&#039;&#039;; } }); s+=&#039;&#039;; document.write(s);</description> <content:encoded><![CDATA[<p>incluir prototype.js<br /> y en el body dentro de un tag javascript poner<br /> ___________</p><p>var obj=encode($comunas_rm)); ?&gt;;<br /> var s=&#8221;;<br /> $A(obj).each(function(item){<br /> if(!Object.isUndefined(item.value) &amp;&amp; !Object.isUndefined(item.text)){<br /> s+=&#8221;+item.text+&#8221;;<br /> }else if(!Object.isUndefined(item.group) &amp;&amp; !Object.isUndefined(item.options)){<br /> s+=&#8221;;<br /> $A(item.options).each(function(item2){<br /> if(!Object.isUndefined(item2.value) &amp;&amp; !Object.isUndefined(item2.text)){<br /> s+=&#8221;+item2.text+&#8221;;<br /> }<br /> });<br /> s+=&#8221;;<br /> }<br /> });<br /> s+=&#8221;;<br /> document.write(s);</p> ]]></content:encoded> </item> <item><title>By: Pablo</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-34370</link> <dc:creator>Pablo</dc:creator> <pubDate>Fri, 24 Jul 2009 20:32:59 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-34370</guid> <description>Mejor lo coloco por part porque se borra,...Esto dentro de un hambiente phprequire_once(&quot;util/json.php&quot;); $json = new Services_JSON; $comunas_rm=array( array(&#039;value&#039;=&gt;&quot;-&quot;,&#039;text&#039;=&gt;&quot;Escoge&quot;), array( &#039;group&#039;=&gt;&quot;Comunas&quot;, &#039;options&#039;=&gt;array( array(&#039;value&#039;=&gt;1,&#039;text&#039;=&gt;&quot;Maip&#250;&quot;), array(&#039;value&#039;=&gt;2,&#039;text&#039;=&gt;&quot;Santiago&quot;), array(&#039;value&#039;=&gt;3,&#039;text&#039;=&gt;&quot;Providencia&quot;), array(&#039;value&#039;=&gt;4,&#039;text&#039;=&gt;&quot;La Forida&quot;) ) ) );</description> <content:encoded><![CDATA[<p>Mejor lo coloco por part porque se borra,&#8230;</p><p>Esto dentro de un hambiente php</p><p>require_once(&#8220;util/json.php&#8221;);<br /> $json = new Services_JSON;<br /> $comunas_rm=array(<br /> array(&#8216;value&#8217;=&gt;&#8221;-&#8221;,&#8217;text&#8217;=&gt;&#8221;Escoge&#8221;),<br /> array(<br /> &#8216;group&#8217;=&gt;&#8221;Comunas&#8221;,<br /> &#8216;options&#8217;=&gt;array(<br /> array(&#8216;value&#8217;=&gt;1,&#8217;text&#8217;=&gt;&#8221;Maip&uacute;&#8221;),<br /> array(&#8216;value&#8217;=&gt;2,&#8217;text&#8217;=&gt;&#8221;Santiago&#8221;),<br /> array(&#8216;value&#8217;=&gt;3,&#8217;text&#8217;=&gt;&#8221;Providencia&#8221;),<br /> array(&#8216;value&#8217;=&gt;4,&#8217;text&#8217;=&gt;&#8221;La Forida&#8221;)<br /> )<br /> )<br /> );</p> ]]></content:encoded> </item> <item><title>By: Pablo</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-34369</link> <dc:creator>Pablo</dc:creator> <pubDate>Fri, 24 Jul 2009 20:31:29 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-34369</guid> <description>Aquí un pequeño ejemplo que hice usando json con prototype... Haber si sirve de idea para otras cosas.Saludos. _________________________________&quot;-&quot;,&#039;text&#039;=&gt;&quot;Escoge&quot;), array( &#039;group&#039;=&gt;&quot;Comunas&quot;, &#039;options&#039;=&gt;array( array(&#039;value&#039;=&gt;1,&#039;text&#039;=&gt;&quot;Maip&#250;&quot;), array(&#039;value&#039;=&gt;2,&#039;text&#039;=&gt;&quot;Santiago&quot;), array(&#039;value&#039;=&gt;3,&#039;text&#039;=&gt;&quot;Providencia&quot;), array(&#039;value&#039;=&gt;4,&#039;text&#039;=&gt;&quot;La Forida&quot;) ) ) ); ?&gt;&lt;!-- var obj=encode($comunas_rm)); ?&gt;; var s=&#039;&#039;; $A(obj).each(function(item){ if(!Object.isUndefined(item.value) &amp;&amp; !Object.isUndefined(item.text)){ s+=&#039;&#039;+item.text+&#039;&#039;; }else if(!Object.isUndefined(item.group) &amp;&amp; !Object.isUndefined(item.options)){ s+=&#039;&#039;; $A(item.options).each(function(item2){ if(!Object.isUndefined(item2.value) &amp;&amp; !Object.isUndefined(item2.text)){ s+=&#039;&#039;+item2.text+&#039;&#039;; } }); s+=&#039;&#039;; } }); s+=&#039;&#039;; document.write(s); //End--&gt;</description> <content:encoded><![CDATA[<p>Aquí un pequeño ejemplo que hice usando json con prototype&#8230;<br /> Haber si sirve de idea para otras cosas.</p><p>Saludos.<br /> _________________________________</p><p>&#8220;-&#8221;,&#8217;text&#8217;=&gt;&#8221;Escoge&#8221;),<br /> array(<br /> &#8216;group&#8217;=&gt;&#8221;Comunas&#8221;,<br /> &#8216;options&#8217;=&gt;array(<br /> array(&#8216;value&#8217;=&gt;1,&#8217;text&#8217;=&gt;&#8221;Maip&uacute;&#8221;),<br /> array(&#8216;value&#8217;=&gt;2,&#8217;text&#8217;=&gt;&#8221;Santiago&#8221;),<br /> array(&#8216;value&#8217;=&gt;3,&#8217;text&#8217;=&gt;&#8221;Providencia&#8221;),<br /> array(&#8216;value&#8217;=&gt;4,&#8217;text&#8217;=&gt;&#8221;La Forida&#8221;)<br /> )<br /> )<br /> );<br /> ?&gt;</p><p>&lt;!&#8211;<br /> var obj=encode($comunas_rm)); ?&gt;;<br /> var s=&#8221;;<br /> $A(obj).each(function(item){<br /> if(!Object.isUndefined(item.value) &amp;&amp; !Object.isUndefined(item.text)){<br /> s+=&#8221;+item.text+&#8221;;<br /> }else if(!Object.isUndefined(item.group) &amp;&amp; !Object.isUndefined(item.options)){<br /> s+=&#8221;;<br /> $A(item.options).each(function(item2){<br /> if(!Object.isUndefined(item2.value) &amp;&amp; !Object.isUndefined(item2.text)){<br /> s+=&#8221;+item2.text+&#8221;;<br /> }<br /> });<br /> s+=&#8221;;<br /> }<br /> });<br /> s+=&#8221;;<br /> document.write(s);<br /> //End&#8211;&gt;</p> ]]></content:encoded> </item> <item><title>By: Claudio</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-34094</link> <dc:creator>Claudio</dc:creator> <pubDate>Thu, 18 Jun 2009 17:33:31 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-34094</guid> <description>el CDATA, si lo ponias entre angulos, es probable que te lo haya limpiado el mecanismo de comentarios, eso se suele hacer para eliminar potenciales instrucciones que provocarian problemas de seguridad. en un sitio una vez alguien o algo me ponia links de spam en los comentarios, asi que empece a filtrar todo lo que estuviera entre angulos o signos mayor y menor.</description> <content:encoded><![CDATA[<p>el CDATA, si lo ponias entre angulos, es probable que te lo haya limpiado el mecanismo de comentarios, eso se suele hacer para eliminar potenciales instrucciones que provocarian problemas de seguridad. en un sitio una vez alguien o algo me ponia links de spam en los comentarios, asi que empece a filtrar todo lo que estuviera entre angulos o signos mayor y menor.</p> ]]></content:encoded> </item> <item><title>By: Andros</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-32092</link> <dc:creator>Andros</dc:creator> <pubDate>Thu, 27 Nov 2008 16:17:12 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-32092</guid> <description>Bueno, no sale... :( Me refería al CDATA</description> <content:encoded><![CDATA[<p>Bueno, no sale&#8230; :(<br /> Me refería al CDATA</p> ]]></content:encoded> </item> <item><title>By: Andros</title><link>http://blog.unijimpe.net/crear-json-con-php/comment-page-1/#comment-32091</link> <dc:creator>Andros</dc:creator> <pubDate>Thu, 27 Nov 2008 16:16:45 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/?p=971#comment-32091</guid> <description>Vaya solo han salida comillas. Había ecrito &lt;code&gt;&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Vaya solo han salida comillas.<br /> Había ecrito<br /> <code></p><p></code></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching using disk: basic

Served from: blog.unijimpe.net @ 2012-02-08 11:39:31 -->
