iirc, historically opscode came out and said that people should not generate metadata.json and that it would be generated by the server automatically. knife used to create the json from the rb, but I'm not sure that functionality still exists.

It wouldn't be very difficult to check for both though.