lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb in adiwg-mdtranslator-2.13.0 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb in adiwg-mdtranslator-2.13.1
- old
+ new
@@ -22,12 +22,12 @@
@Namespace = ADIWG::Mdtranslator::Writers::MdJson
def self.build(hDictionary)
Jbuilder.new do |json|
+ json.citation Citation.build(hDictionary[:citation]) unless hDictionary[:citation].empty?
json.description hDictionary[:description]
json.subject hDictionary[:subjects] unless hDictionary[:subjects].empty?
- json.citation Citation.build(hDictionary[:citation]) unless hDictionary[:citation].empty?
json.recommendedUse hDictionary[:recommendedUses] unless hDictionary[:recommendedUses].empty?
json.locale @Namespace.json_map(hDictionary[:locales], Locale)
json.responsibleParty ResponsibleParty.build(hDictionary[:responsibleParty])
json.dictionaryFunctionalLanguage hDictionary[:dictionaryFunctionalLanguage]
json.dictionaryIncludedWithResource hDictionary[:includedWithDataset]