Re: [PHP] json_encode confusion

2011-11-11 Thread Richard Quadling
On 10 November 2011 14:45, Bastien Koert phps...@gmail.com wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The first row is the headers and the second row

Re: [PHP] json_encode confusion

2011-11-10 Thread Dan Schaefer
On 11/10/2011 09:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The first row is the headers and the second row is the data. Using

Re: [PHP] json_encode confusion

2011-11-10 Thread DiRaven
On 11/10/2011 05:45 PM, Bastien Kurt wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The first row is the headers and the second row is the data. Using this

Re: [PHP] json_encode confusion

2011-11-10 Thread DiRaven
On 11/10/2011 05:45 PM, Bastien Koert wrote: Can someone point me in the correct direction? It may be that I need to manually create the key names as an array first, which I was hoping to avoid since the file format coming from the client is still in some flux. ?php //$data =

Re: [PHP] json_encode confusion

2011-11-10 Thread Jim Lucas
On 11/10/2011 6:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The first row is the headers and the second row is the data.

Re: [PHP] json_encode confusion

2011-11-10 Thread Matijn Woudt
On Thu, Nov 10, 2011 at 5:42 PM, Jim Lucas li...@cmsws.com wrote: On 11/10/2011 6:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage. I have a text file that is pipe delimited coming in via an upload. The

Re: [PHP] json_encode confusion

2011-11-10 Thread tamouse mailing lists
On Thu, Nov 10, 2011 at 11:24 AM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Nov 10, 2011 at 5:42 PM, Jim Lucas li...@cmsws.com wrote: On 11/10/2011 6:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage.