Question: how to export json data to excel file using java?
Answer: Use a library to parse JSON files (GSON and Jackson are the most well-known), then use a FileWriter to write your CSV. – NiziL Jan 21 '15 at 12:38.
Apache POI and JExcel can help you. – ... 
You could try to get the PHP source code and manually transform it into java syntax. ... 
@slartidan can you give me any example.