假设我有一个类似下面的JSON模式
SELECT t1.CustomerID , oldSum, newSum
FROM (
SELECT CustomerID, SUM(Value) AS oldSum
FROM OldVals
GROUP BY CustomerID ) AS t1
FULL OUTER JOIN (
SELECT CustomerID, SUM(Value) AS newSum
FROM NewVals
GROUP BY CustomerID
) AS t2 ON t1.CustomerID = t2.CustomerID
在Java中是否有任何API可以将此模式转换为实际的Json对象,前提是我将随机值输入“firstname”和“lastname”?