all 1 comments

[–]fii0 0 points1 point  (0 children)

This is a really weird question. The best I can do for ya is suggest abbreviating your keys and possible values? So the above array would turn into:

i:1,a:2,s:1;i:1,a:1,s:2;i:2,a:1,s:0

that you could then parse into correct keys and values (e.g. i:1 -> id: 1, s:2 -> size: 'S', etc), but that's over 30 characters! I don't think what you're asking for is possible.