Trolling around with a bad commit

Cyclomatic complexity for as_json is too high. [7/6]<br>Method has too many lines. [23/10]<br>Surrounding space missing in default value assignment.