Support multi_json between 1.0 and 1.3. Fixes #12 and #13.