Bug-fix: better handling of comma in the last element of a Json Array
and duplicate dependencies in pom.xml.

Change-Id: If5d1b6e30caa60fb04d929ace9f36af85d78f8ce