Menu

#1767 Json: tojson applied to a not empty directory raises error "too many arguments"

5.0.0
closed
Erich
None
none
1
2023-01-01
2021-05-22
jfaucher
No

Method parseRexxString
The instruction 'use strict arg rexxObject' is too strict.
The method accepts an optional second argument: if arg(2, 'e')

To reproduce:
say .json~new~toJson(.directory~of( ("key1", "value1"), ("key2", "value2")))

Fix and tests in attached patches.

2 Attachments

Discussion

  • Erich

    Erich - 2021-05-23
    • status: open --> pending
    • assigned_to: Erich
     
  • Erich

    Erich - 2021-05-23

    Fixed code and updated test with revision [r12255]
    Thanks for the patch, Jean-Louis!

     

    Related

    Commit: [r12255]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB