Skip to content

US based ZIP code leading zero is truncated #2

@chewymole

Description

@chewymole

Hi,
Very nice utility. Thank you for your contribution!
I only have 1 issue with it and that is zip codes that have leading zeros get truncated.

Is there a work around for this?
Example:

<cfset my_data.address = "1 n main st.">

<cfset my_data.city = "Looserville">

<cfset my_data.state = "bordom">

<cfset my_data.zip = "01234">

<cfdump var="#jsonutil.serializeToJson(my_data)#">

Thanks again
Chewy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions