5
kaloxy
5y

Is there a gui for json generator? eg a form in which i can enter first Name, LastName, Sex etc... then it generates the correct json.

Comments
  • 17
    You can just type it out man, JSON is not as hard to read as XML
  • 1
    I used google spreadsheets with a json export script. But that's only viable for personal manual data gathering and not something you would serve a user.

    For that you'd need a website or form service like https://www.wufoo.com/ and a database like firebase real time database.
  • 2
    jsonlint.com will validate as you type in...
  • 17
    {"firstname": "abc", "last
    name":"xyz", "sex":"often", "age": "99"}

    That was hard 🤷‍♂️

    You could just build a form and convert to json, I mean, you are a dev right?
  • 1
    No, there is no such tool available at this time.
  • 4
    Php has a json_encode function, perhaps try creating a form in that
  • 4
    @alexbrooklyn wow! seting up a php instance for something that can be done in 10 minutes with client side html, css, and javascript. You like to use the big battleship canon to kill a moscito don't you? 😀
  • 5
    @heyheni oh shit, I almost forgot that javascript existed for that 😅 whoops

    Btw, add blockhain, docker, k8s and a redis db to make sure the app works properly
  • 2
    @alexbrooklyn ay ay captain! 😄
  • 3
    @C0D4 well if you can't write JSON I kinda doubt it
  • 2
    @alexbrooklyn yes, because how would one write Javascript Object notation with Javascript?
  • 1
    Handy for generating JSON test data:
    https://www.json-generator.com
  • 2
    I tried this one and it's really easy and helpful.
    helped me generation a really long Json.

    http://www.objgen.com/json
  • 2
    @heyheni php setup is seconds if you download the binaries,
    open cmd/terminal

    php -a

    echo json_encode(array("firstname" => "hey", "lastname" => "heni"));

    Copy output

    I think it would have been quicker to do it then write this thing on my phone 🤦‍♂️😂

    But then opening a browser console and adding

    let arr = [ "Bob", "Marley", "Chester", "Heyheni" ];
    Console.debug(JSON.stringify(arr));

    Could work too, I mean it's pretty intensive though.
  • 2
    @C0D4 typing code on phone is the worst. I also hate it when I am talking about .NET a few times in a message because of the automatic space removal...
  • 2
    @Codex404 autocomplete + random spaces are the worst when trying to write syntax on a phone.

    It's ok for small things (well it's tolerable)
  • 1
    Random related tip if you are on a Mac. You can use the Xcode plist editor to make hierarchical data structures and then save as or convert them to JSON with putil

    plutil -convert json data.plist -o data.json
  • 2
    @Coffe2Code ... Awesome this solves my problem! Thanks ...
  • 1
  • 1
    @C0D4 @Codex404 try "unexpected keyboard" for android
  • 1
    Java and gson
Add Comment