first working version using post_sample_json