simple nested document crud from json