Simplify JsonContent::beautifyJSON()

Change-Id: I406d5c2967615f818c9ac42abc19ab8a49e1da8d