Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31994
| From | $Bill <news@todbe.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Simply displaying JSON data for users: what is your preferred method? |
| Date | 2016-12-26 15:08 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <o3s7qh$d83$1@dont-email.me> (permalink) |
| References | (2 earlier) <JSON-20161226000736@ram.dialup.fu-berlin.de> <o3plbj$68l$1@dont-email.me> <f1c3ec7c-e96e-4ed4-9ccf-eae176233dbc@googlegroups.com> <o3q352$vku$1@dont-email.me> <6407f674-1ad1-4935-8a59-2bb8538c823d@googlegroups.com> |
On 12-26-16 04:50, David Mark wrote:
> On Sunday, December 25, 2016 at 10:36:35 PM UTC-5, $Bill wrote:
>> On 12-25-16 16:21, David Mark wrote:
>>> On Sunday, December 25, 2016 at 6:41:05 PM UTC-5, $Bill wrote:
>>>
>>>> I wrote a JSON parser in Perl using RE's and parsing out tokens which I then used
>>>> to create a Perl hash duplicating the JSON object - not that difficult code-wise
>>>> (maybe 500-600 lines including blanks), but haven't really checked the efficiency
>>>> of it.
>>>
>>> How about the accuracy? In other words, I agree with Stefan Ram's assessment (though his post is oddly absent here on Google Groups).
>>
>> The accuracy is as good as your code.
^^^^
> How very interesting! Was that a specific benchmark you aimed for or did it just turn out that way? BTW, which of my code is it as good as?
'your' meaning the generic coder (which in the above case was 'my' JSON parser not 'yours'). :)
>> I've hit one or two unexpected
>> things that I fixed fairly quickly, but the more I use it the better
>> chance of hitting some odd cases (like unicode values etc).
>
> Yes. It certainly increases the odds of hitting a limitation or oversight.
>
>> The accuracy
>> is as good as my understanding of JSON object syntax.
>
> And as good as my code. That's quite the one-two punch. Best of luck with it. :)
My understanding and my code - unless you write one and then it's your understanding
and code. :0
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Simply displaying JSON data for users: what is your preferred method? Doc O'Leary <droleary@2015usenet1.subsume.com> - 2016-12-24 16:15 +0000
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-25 18:01 +0700
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-25 15:40 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-25 16:21 -0800
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-25 19:36 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-26 04:50 -0800
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-26 15:08 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-28 19:26 -0800
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-26 23:19 +0700
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-26 23:30 +0700
Re: Simply displaying JSON data for users: what is your preferred method? Doc O'Leary <droleary@2015usenet1.subsume.com> - 2016-12-26 16:27 +0000
Re: Simply displaying JSON data for users: what is your preferred method? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-26 12:36 -0800
csiph-web