working on jsencode.
Generate a api in console on save button.