json: Create RealNumber with correct type.
json: Add formated output.