Send Wireless AC current sensor data to node red using JSON format

How Can I use JSON format with ESP8266 which help me to send the Wireless AC current sensor data to Firebase?
I need some good explanation which help me to write my own code instead of using special Firebase packages.
Any suggestion which will help me in this kind of solution will be a great help.