Trying to understand how could be possible to write a function, (directive / controller) that would transform all my form inputs to json with current value that they have to json.
The json would have a format similar to that:
{
fields: [
{field1: value1},
{field2: value2},
{field3, value3}
]
}
Where to start from at least.. with no jquery applying?