Create a Lua script, updateJson.lua, and put it into the Java resources folder. The content of the Lua script can be found in the Using Lua recipe in Chapter 3, Data Features.
Create a Java class, JedisLuaDemo:
The output of the program is:
users:id:992452: {"grade":"C","name":"Tina","sex":"female"}