m2v2: new functions to serialize to JSON
Clean licenses declaration

Change-Id: I8feb0aaff29487a09a222dcbb89f2b27b6613230