… | |
… | |
309 | ] |
309 | ] |
310 | { |
310 | { |
311 | "k1": "v1", |
311 | "k1": "v1", |
312 | "k2": "v2", <- this comma not normally allowed |
312 | "k2": "v2", <- this comma not normally allowed |
313 | } |
313 | } |
|
|
314 | |
|
|
315 | =item * shell-style '#'-comments |
|
|
316 | |
|
|
317 | Whenever JSON allows whitespace, shell-style comments are additionally |
|
|
318 | allowed. They are terminated by the first carriage-return or line-feed |
|
|
319 | character, after which more white-space and comments are allowed. |
|
|
320 | |
|
|
321 | [ |
|
|
322 | 1, # this comment not allowed in JSON |
|
|
323 | # neither this one... |
|
|
324 | ] |
314 | |
325 | |
315 | =back |
326 | =back |
316 | |
327 | |
317 | =item $json = $json->canonical ([$enable]) |
328 | =item $json = $json->canonical ([$enable]) |
318 | |
329 | |