test_class.declarator: jsonToCsvConverter
test_class.modifier: @Inject
test_class.original_string: @Inject
      JsonToCsvConverter jsonToCsvConverter;
test_class.type: JsonToCsvConverter
test_class.var_name: jsonToCsvConverter
test_class.file: gae-studio/gae-studio-server/src/test/java/com/arcbees/gaestudio/server/util/JsonToCsvConverterTest.java
test_class.identifier: JsonToCsvConverterTest
test_case.body: @Test
      public void convertEasyJsonToCsv() throws JSONException, IOException {
          String jsonData = getJsonData();
  
          String result = jsonToCsvConverter.convert(jsonData);
  
          assertEquals(getCsvData(), result);
      }
test_case.class_method_signature: JsonToCsvConverterTest.convertEasyJsonToCsv()
test_case.full_signature: @Test public void convertEasyJsonToCsv()
test_case.identifier: convertEasyJsonToCsv
test_case.invocations: getJsonData convert assertEquals getCsvData
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void convertEasyJsonToCsv()
focal_class.file: gae-studio/gae-studio-server/src/main/java/com/arcbees/gaestudio/server/util/JsonToCsvConverter.java
focal_class.identifier: JsonToCsvConverter
focal_class.class_method_signature: JsonToCsvConverter.convert(String jsonData)
focal_class.full_signature: public String convert(String jsonData)
focal_class.identifier: convert
focal_class.modifiers: public
focal_class.parameters: (String jsonData)
focal_class.return: String
focal_class.signature: String convert(String jsonData)
focal_class.class_method_signature: JsonToCsvConverter.extractFullPropertyMap(JSONArray array)
focal_class.full_signature: private JSONObject extractFullPropertyMap(JSONArray array)
focal_class.identifier: extractFullPropertyMap
focal_class.modifiers: private
focal_class.parameters: (JSONArray array)
focal_class.return: JSONObject
focal_class.signature: JSONObject extractFullPropertyMap(JSONArray array)
focal_class.class_method_signature: JsonToCsvConverter.updateFullPropertyMap(JSONObject currentObjectPropertyMap, JSONObject fullPropertyMap)
focal_class.full_signature: private void updateFullPropertyMap(JSONObject currentObjectPropertyMap, JSONObject fullPropertyMap)
focal_class.identifier: updateFullPropertyMap
focal_class.modifiers: private
focal_class.parameters: (JSONObject currentObjectPropertyMap, JSONObject fullPropertyMap)
focal_class.return: void
focal_class.signature: void updateFullPropertyMap(JSONObject currentObjectPropertyMap, JSONObject fullPropertyMap)
focal_class.class_method_signature: JsonToCsvConverter.extractColumns(JSONObject fullPropertyMap)
focal_class.full_signature: private Set<String> extractColumns(JSONObject fullPropertyMap)
focal_class.identifier: extractColumns
focal_class.modifiers: private
focal_class.parameters: (JSONObject fullPropertyMap)
focal_class.return: Set<String>
focal_class.signature: Set<String> extractColumns(JSONObject fullPropertyMap)
focal_class.class_method_signature: JsonToCsvConverter.buildColumnsLine(Set<String> columns)
focal_class.full_signature: private String buildColumnsLine(Set<String> columns)
focal_class.identifier: buildColumnsLine
focal_class.modifiers: private
focal_class.parameters: (Set<String> columns)
focal_class.return: String
focal_class.signature: String buildColumnsLine(Set<String> columns)
focal_class.class_method_signature: JsonToCsvConverter.addSeparator(Set<String> columns, String columnsResult, int counter)
focal_class.full_signature: private String addSeparator(Set<String> columns, String columnsResult, int counter)
focal_class.identifier: addSeparator
focal_class.modifiers: private
focal_class.parameters: (Set<String> columns, String columnsResult, int counter)
focal_class.return: String
focal_class.signature: String addSeparator(Set<String> columns, String columnsResult, int counter)
focal_class.class_method_signature: JsonToCsvConverter.buildDataLines(JSONArray dataArray, JSONObject fullPropertyMap)
focal_class.full_signature: private String buildDataLines(JSONArray dataArray, JSONObject fullPropertyMap)
focal_class.identifier: buildDataLines
focal_class.modifiers: private
focal_class.parameters: (JSONArray dataArray, JSONObject fullPropertyMap)
focal_class.return: String
focal_class.signature: String buildDataLines(JSONArray dataArray, JSONObject fullPropertyMap)
focal_class.class_method_signature: JsonToCsvConverter.writeKeyData(JSONObject currentObjectValue)
focal_class.full_signature: private String writeKeyData(JSONObject currentObjectValue)
focal_class.identifier: writeKeyData
focal_class.modifiers: private
focal_class.parameters: (JSONObject currentObjectValue)
focal_class.return: String
focal_class.signature: String writeKeyData(JSONObject currentObjectValue)
focal_class.class_method_signature: JsonToCsvConverter.generateColumnNamesFromPropertyMap(String propertyName, JSONObject propertyMap)
focal_class.full_signature: private Set<String> generateColumnNamesFromPropertyMap(String propertyName, JSONObject propertyMap)
focal_class.identifier: generateColumnNamesFromPropertyMap
focal_class.modifiers: private
focal_class.parameters: (String propertyName, JSONObject propertyMap)
focal_class.return: Set<String>
focal_class.signature: Set<String> generateColumnNamesFromPropertyMap(String propertyName, JSONObject propertyMap)
focal_class.class_method_signature: JsonToCsvConverter.generateColumnNamesFromPropertyType(String propertyName, JSONObject currentPropertyObject)
focal_class.full_signature: private Set<String> generateColumnNamesFromPropertyType(String propertyName, JSONObject currentPropertyObject)
focal_class.identifier: generateColumnNamesFromPropertyType
focal_class.modifiers: private
focal_class.parameters: (String propertyName, JSONObject currentPropertyObject)
focal_class.return: Set<String>
focal_class.signature: Set<String> generateColumnNamesFromPropertyType(String propertyName, JSONObject currentPropertyObject)
focal_class.class_method_signature: JsonToCsvConverter.generateColumns(String propertyName, JSONObject currentPropertyObject)
focal_class.full_signature: private Set<String> generateColumns(String propertyName, JSONObject currentPropertyObject)
focal_class.identifier: generateColumns
focal_class.modifiers: private
focal_class.parameters: (String propertyName, JSONObject currentPropertyObject)
focal_class.return: Set<String>
focal_class.signature: Set<String> generateColumns(String propertyName, JSONObject currentPropertyObject)
focal_class.class_method_signature: JsonToCsvConverter.generateArrayColumnNames(String propertyName, JSONArray array)
focal_class.full_signature: private Set<String> generateArrayColumnNames(String propertyName, JSONArray array)
focal_class.identifier: generateArrayColumnNames
focal_class.modifiers: private
focal_class.parameters: (String propertyName, JSONArray array)
focal_class.return: Set<String>
focal_class.signature: Set<String> generateArrayColumnNames(String propertyName, JSONArray array)
focal_class.class_method_signature: JsonToCsvConverter.generateGeoPtColumnNames(String propertyName)
focal_class.full_signature: private Set<String> generateGeoPtColumnNames(String propertyName)
focal_class.identifier: generateGeoPtColumnNames
focal_class.modifiers: private
focal_class.parameters: (String propertyName)
focal_class.return: Set<String>
focal_class.signature: Set<String> generateGeoPtColumnNames(String propertyName)
focal_class.class_method_signature: JsonToCsvConverter.generateDataLineFromPropertyMap(JSONObject propertyMap, JSONObject fullPropertyMap)
focal_class.full_signature: private String generateDataLineFromPropertyMap(JSONObject propertyMap, JSONObject fullPropertyMap)
focal_class.identifier: generateDataLineFromPropertyMap
focal_class.modifiers: private
focal_class.parameters: (JSONObject propertyMap, JSONObject fullPropertyMap)
focal_class.return: String
focal_class.signature: String generateDataLineFromPropertyMap(JSONObject propertyMap, JSONObject fullPropertyMap)
focal_class.class_method_signature: JsonToCsvConverter.writePropertyData(String propertyName, JSONObject propertyMap)
focal_class.full_signature: private String writePropertyData(String propertyName, JSONObject propertyMap)
focal_class.identifier: writePropertyData
focal_class.modifiers: private
focal_class.parameters: (String propertyName, JSONObject propertyMap)
focal_class.return: String
focal_class.signature: String writePropertyData(String propertyName, JSONObject propertyMap)
focal_class.class_method_signature: JsonToCsvConverter.writeGeoData(JSONObject geoPt)
focal_class.full_signature: private String writeGeoData(JSONObject geoPt)
focal_class.identifier: writeGeoData
focal_class.modifiers: private
focal_class.parameters: (JSONObject geoPt)
focal_class.return: String
focal_class.signature: String writeGeoData(JSONObject geoPt)
focal_class.class_method_signature: JsonToCsvConverter.writeArrayData(JSONArray array)
focal_class.full_signature: private String writeArrayData(JSONArray array)
focal_class.identifier: writeArrayData
focal_class.modifiers: private
focal_class.parameters: (JSONArray array)
focal_class.return: String
focal_class.signature: String writeArrayData(JSONArray array)
focal_class.class_method_signature: JsonToCsvConverter.removeLastComma(String arrayData)
focal_class.full_signature: private String removeLastComma(String arrayData)
focal_class.identifier: removeLastComma
focal_class.modifiers: private
focal_class.parameters: (String arrayData)
focal_class.return: String
focal_class.signature: String removeLastComma(String arrayData)
focal_class.class_method_signature: JsonToCsvConverter.writePropertyData(JSONObject jsonObject)
focal_class.full_signature: private String writePropertyData(JSONObject jsonObject)
focal_class.identifier: writePropertyData
focal_class.modifiers: private
focal_class.parameters: (JSONObject jsonObject)
focal_class.return: String
focal_class.signature: String writePropertyData(JSONObject jsonObject)
focal_class.class_method_signature: JsonToCsvConverter.writeData(JSONObject jsonObject)
focal_class.full_signature: private String writeData(JSONObject jsonObject)
focal_class.identifier: writeData
focal_class.modifiers: private
focal_class.parameters: (JSONObject jsonObject)
focal_class.return: String
focal_class.signature: String writeData(JSONObject jsonObject)
focal_method.body: public String convert(String jsonData) throws JSONException {
          Set<String> columns;
          JSONArray array = new JSONArray(jsonData);
  
          JSONObject fullPropertyMap = extractFullPropertyMap(array);
  
          columns = extractColumns(fullPropertyMap);
  
          String csvResult = buildColumnsLine(columns);
  
          csvResult += buildDataLines(array, fullPropertyMap);
  
          return csvResult;
      }
focal_method.class_method_signature: JsonToCsvConverter.convert(String jsonData)
focal_method.full_signature: public String convert(String jsonData)
focal_method.identifier: convert
focal_method.invocations: extractFullPropertyMap extractColumns buildColumnsLine buildDataLines
focal_method.modifiers: public
focal_method.parameters: (String jsonData)
focal_method.return: String
focal_method.signature: String convert(String jsonData)