converting to json lexicon and prefixing meta related attributes with _
entities key needed
put back missing extends for system, changing it to _extends
fix extraneous extends