Move the function used to format as JSON to a separate function instead of definining it inline. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Move the function used to format as JSON to a separate function instead of definining it inline. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>