make the len pointer param optional for json_value_format()
fix string parsing