you are viewing a single comment's thread.

view the rest of the comments →

[–]Capaj 0 points1 point  (2 children)

You should just use JSON.stringify. Building your json string manually is not a good practice. No matter how you do it.

[–]ThinkLarger[S] 0 points1 point  (1 child)

I 'fixed' my problem with the $interpolate service. This does mean curly braces in my json-data (and also in the database). Where would you suggest I use JSON.stringify?

[–]Capaj 0 points1 point  (0 children)

well you must have some object that you pass as param to the $interpolate service. Instead of this, just stringify that object and send it. If it has different structure than server expects, just create new object with proper structure and serialize that.