aarondfrancis / vue-model

Model component for Vue.js
MIT License
855 stars 42 forks source link

Support sending (create, update) as JSON #9

Closed iiome closed 7 years ago

iiome commented 8 years ago

vue-model already supports loading data as JSON (fetch, list). Would it be possible to support sending (create, update) data as JSON?

thorsteneckel commented 7 years ago

Hi @iiome - do I get your right that you want so send a JSON string (not an JS Object) via create/update through vue-model?

iiome commented 7 years ago

Quite the opposite! I'd like vue-model to transform to JSON the Javascript object it received when the contentType is set to application/json. I've committed some code on July 24th about this.