Skip to content

Instantly share code, notes, and snippets.

@nfroidure
Created March 7, 2013 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfroidure/5111769 to your computer and use it in GitHub Desktop.
Save nfroidure/5111769 to your computer and use it in GitHub Desktop.
Rest input for love :)
# Json
{
"truc":"bidule",
"truc2":"bidule2",
"truc3":"bidule3"
"tab":
[
"machin",
"bidule",
"truc"
]
}
# xml
<vars>
<var name="truc" value="bidule" />
<var name="truc2" value="bidule2" />
<var name="truc3" value="bidule3" />
<varlist name="tab">
<var value="machin" />
<var value="bidule" />
<var value="truc" />
</varlist>
</vars>
# form
truc=bidule&truc2=bidule2&truc3=bidule3&tab.0=machin&tab.1=bidule&tab.2=truc
# Varstream
truc=bidule
truc2=bidule2
truc3=bidule3
tab.+=machin
tab.+=bidule
tab.+=truc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment