JSON serialization of data points and metadata (testings)