Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case in json keys #10

Open
DXgEoXxD opened this issue Feb 26, 2021 · 4 comments
Open

case in json keys #10

DXgEoXxD opened this issue Feb 26, 2021 · 4 comments

Comments

@DXgEoXxD
Copy link

Hi somenone,

First of all, thank you for this awesome tool!!
I'm facing some issues when the json key starts with uppercase character.
For example, if i paste this json:

{
    "Name": "DXgEoXxD",
    "Age": 23,
    "Address": "Street 12 Nº 1234",
    "DocNumber": "12345678-9"
}

I expect to get this interface:

export interface RootObject {
	Name: string;
	Age: number;
	Address: string;
        DocNumber: string;
}

But instead, i get this one:

export interface RootObject {
	name: string;
	age: number;
	address: string;
        docNumber: string;
}

Thank you in advance for your support.

@aliabbaszade1990
Copy link

I have same problem !

@ikimiler
Copy link

problem

+1

@ikimiler
Copy link

i have a same problem

Repository owner deleted a comment from AKclown Jun 6, 2023
NoobKilla5412 added a commit to NoobKilla5412/VSCode-json2ts that referenced this issue Jan 24, 2024
@tiandongmao
Copy link

+1
It's better to preserve the case of the keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants