Move function definition to same line as test description for 'json' command test