Compile with jansson 2.X

Make the plugin compile with jansson 2.X