update profile JSON API and put two examples.