I am new to firebase, and I am trying to put json object data into my firebase. I know how to put data as a class object into firebase, But I want to put json object data.>
As suggested here: Convert a JSON String to a HashMap
you can easily convert your json object/string to a Map (you don't even need to create a POJO):
Map
Firebase ref = new Firebase(YOUR_FIREBASE_REF); Map map = new Gson().fromJson(jsonString, new TypeToken>() {}.getType()); ref.setValue(map);