I would like to get the data typed in my form and put it in a json, but I do not know how to do it. My HTML form looks like this:
<form action="" class="formContent" id="myform">
<div class="row form-input" id="form">
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="nome">Nome
<input type="name" id="nome" name="nome" placeholder="Digite seu nome" title="">
</label>
</div>
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="email">Email
<input type="email" id="email" name="email" placeholder="Digite seu email">
</label>
</div>
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="telefone">Telefone
<input type="text" id="telefone" name="telefone" placeholder="Digite seu telefone">
</label>
</div>
</div>
<div class="row form-Msg" id="form_two">
<div class="col-lg-12 col-xs-12" style="padding: 0;">
<label for="">Mensagem
<textarea id="mensagem" name="mensagem" rows="5" placeholder="Digite sua mensagem"></textarea>
</label>
</div>
<div class="col-lg-2">
<input type="submit" id="enviar" name="enviar" onclick="salvar();" value="Enviar">
<!-- <button href="#" class="FormSing" type="button" name="button">Enviar</button> -->
</div>
</div>
<!-- <button class="FormSing" type="button" name="button">Enviar</button> -->
</form>