You were faster! :)

Do you therefore want to comment on the bug 
<https://sourceforge.net/p/oorexx/bugs/1709/>?

---rony


On 14.06.2020 19:14, Rick McGuire wrote:
> Nope, I was wrong on this one. The problem here is the JSON data is 
> malformed. The data has this: 
>               "Ratings:"
>                 [],
> but it should be this: 
>               "Ratings":
>                 [],
> The name delimiter is inside the quotes, not outside. Looks like a lazy 
> coding error at IMDB. 
> Rick
>
> On Sun, Jun 14, 2020 at 1:07 PM Rick McGuire <object.r...@gmail.com
> <mailto:object.r...@gmail.com>> wrote:
>
>     There's already code in there to return an empty array. I suspect the 
> problem is the newline
>     character before the "[". It is not being recognized as an array item. 
>
>     Rick
>
>     On Sun, Jun 14, 2020 at 12:57 PM Rony G. Flatscher 
> <rony.flatsc...@wu.ac.at
>     <mailto:rony.flatsc...@wu.ac.at>> wrote:
>
>         <https://sourceforge.net/p/oorexx/bugs/1709/> reports an error with 
> the current
>         implementation of
>         json parsing, supplying a short script and test data demonstrating 
> the error.
>
>         Researching on the Internet there are various opinions/expectations 
> that people have, e.g.
>         
> <https://www.google.com/search?client=firefox-b-d&q=json+empty+array+or+null>.
>
>         Personally I would agree with
>         
> <https://stackoverflow.com/questions/9619852/what-is-the-convention-in-json-for-empty-vs-null/9623521>,
>         i.e. if an array or map is empty, return an empty array resp. empty 
> map instead of .nil
>         following
>         the Rexx philosophy of "least surprise". (Json
>
>         What do you think?
>
>         ---rony
>

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to