Below is a function which is called in my alpaca "postRender" callback :
function onClickDefaultParameterButtons(renderedForm) {
    $('#paramFormSaveBtn')
        .click(
                function() {
                    if (renderedForm.isValid(true)) {
                        val = renderedForm.getValue();
                        paramIdDefaultMap[curParameterIdSelect].Parameter.Value = JSON
                                .stringify(val);
                        genericJsonAjaxCall(
                                "${RestUrlBase}/DefaultParameters/"
                                        + curParameterIdSelect,
                                "put",
                                JSON.stringify(paramIdDefaultMap[curParameterIdSelect]),
                                saveDefaultParameterChangesSuccessCallback,
                                false);
                    }
                });
}
I have a checkbox in this form and it has some issues with serialization.
For example, if the checkbox is checked, it will show up as a value in the renderedForm.getValue() return.
If the checkbox is not checked, it will not show up as a value in the renderedForm.getValue() return.
Another issue I found is when I have a number field and put the value of 0, it also does not show up in the renderedForm.getValue(). I need all form values to show up whether they are checked, not checked or even 0.
Is there a way to get around this?