将JSON模式转换为JSON对象

时间:2016-02-09 16:50:48

标签: java json

假设我有一个类似下面的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”?

0 个答案:

没有答案