Added support for non-assosciative arrays using numbered indexes. These are now automatically sorted so the output json isn't an object.