Move parent metadata to a "parent" field in metadata json

Close #195