minor changes to the node server, in order to parse metadata as a JSON