Forgive my second-rate google-fu, but I'm finding this topic tricky to search for. All I can find is crappy form-generators that will pump out HTML.
I'm looking for a library or established approach to store forms (fields rather than form data) in JSON format. Is there either a open-source form-builder that takes simple input and makes JSON / associative arrays to represent raw HTML form fields or something like a standard for doing so?
something like,
{
"id": {
"Input": ["select"],
"Name": ["favorite_color"],
"Options": ["red","green","blue"]
}
}
etc...
I know this sounds like a trivial problem, but I'd like to at least peak at an accepted solution before just rolling my own.