You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currrently, to-json { a => [1, 2, 'b'] }; produces this JSON string { "a" : [ 1, 2, "b" ] }. All of the spaces between the elements are not needed and the string {"a":[1,2,"b"]} is equivalent. All the extra spaces add unessesary bytes to the generated JSON string, which will likely be transmitted over the Internet or stored in a file.
Steps to reproduce:
Run this in the terminal: perl6 -e 'use JSON::Tiny; say to-json { a => [1, 2, "b"] };'
Expected result:
Outputted string is {"a":[1,2,"b"]}
Current result:
Outputted string is { "a" : [ 1, 2, "b" ] }
The text was updated successfully, but these errors were encountered:
Currrently,
to-json { a => [1, 2, 'b'] };
produces this JSON string{ "a" : [ 1, 2, "b" ] }
. All of the spaces between the elements are not needed and the string{"a":[1,2,"b"]}
is equivalent. All the extra spaces add unessesary bytes to the generated JSON string, which will likely be transmitted over the Internet or stored in a file.Steps to reproduce:
Run this in the terminal:
perl6 -e 'use JSON::Tiny; say to-json { a => [1, 2, "b"] };'
Expected result:
Outputted string is
{"a":[1,2,"b"]}
Current result:
Outputted string is
{ "a" : [ 1, 2, "b" ] }
The text was updated successfully, but these errors were encountered: