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

generating editor using json #1

Closed
justryingtocode opened this issue Jul 31, 2019 · 2 comments
Closed

generating editor using json #1

justryingtocode opened this issue Jul 31, 2019 · 2 comments

Comments

@justryingtocode
Copy link

I am trying to generate the editor in my project but the JSON that I am getting has a number without any quotes, what I mean to say is

{ "number" : 5}

But in this editor, we need to have the number written in double quotes .
Is there any way i could still use this editor without having to change my schema?
Thank you in advance :)

@mirshahreza
Copy link
Owner

If you use the editor without any schema the plugin generates an schema automatically so if you want to force plugin to generate attribute as a string you need to enter value like this:
{ number : ""5"" }

look at this live demo
https://www.jqueryscript.net/demo/form-json-editor/

There is an string array sample that you can enter "5" and then it generates : ""5""

@justryingtocode
Copy link
Author

Thankyou :) It worked ! Sorry for bothering you should have found it myself.

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

2 participants