How can I convert query string or JSON object map to single JSON object with jQuery?

后端 未结 5 775
忘掉有多难
忘掉有多难 2020-12-09 14:13

For this example, assume that I have a list of months in a form, each with a checkbox next to them. I\'m looking for help on doing either of two things:

  1. Conver
5条回答
  •  心在旅途
    2020-12-09 14:42

    I know you're trying to turn a query-string into a JSON object, but perhaps you might be interested in going directly from an html form to a JSON object (without having to specify really convoluted name attributes). If so, check out JSONForms: http://code.google.com/p/jsonf/

    Disclaimer: I started the jsonforms project. It's still young, but personally I think it rocks!

提交回复
热议问题