Thanks mac_gyver
Here's the JSON
{
"ec": "3CB220804",
"ID": "1X1291167M031591B",
"FullName0": "Walter Mitty",
"email0": "
[email protected]",
"phone0": "",
"comments0": "",
"member0": "true",
"date00": "true",
"date10": "true",
"date20": "true",
"cost": "90"
}
Yes I can change the POST keys. I just didn't want to rewrite huge amounts to change to using JSON POST encoding. Faking up the []s, I get
{
"ec": "3CB220804",
"ID": "4B965680NN227192S",
"FullName": [
"Walter Mitty"
],
"email": [
"
[email protected]"
],
"phone": [
""
],
"comments": [
""
],
"member": [
"true"
],
"date": [
[
"true",
"true",
"true"
]
],
"cost": "90"
}
Which is what I need. I didn't realise that POST encoding and decoding allowed arrays. Thanks all, I'll mark kicken's reply as the solution.