Working XML to JSON conversion using org.json library