{"name":"Tom","subject":{"name":"Physics"}}In the above example, both the main and embedded object should be created.