2
對於主動記錄其工作的罰款Neo4j.rb:as_json如何忽略root?
的ActiveRecord :: Base.include_root_in_json =假
User.first.as_json
=> { "id" => 1, "name" => "Konata Izumi", "age" => 16,
"created_at" => "2006/08/01", "awesome" => true}
當我使用它Neo4j.rb主動節點
Person.first.as_json
=> {"person"=> {" first_name"=>"Kay", "last_name" => "Wood",
"email" => "[email protected]" } }
這就是我要通過API發送repsosne,我不需要這個根元素任何幫助?
非常感謝你:) –