---
title: "Discussion on \"TIL #1 : How to pluck jsonb fileds in Rails\" | Hashnode"
description: "Discussion on \"TIL #1 : How to pluck jsonb fileds in Rails\". If you have a jsonb field in your Active record object and you want some nested value you can use pluck\nExample: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of..."
url: "https://hashnode.com/posts/jsonb-rails-pluck/65377d203e0c6fcb2e1b43c5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TIL #1 : How to pluck jsonb fileds in Rails](https://www.dsdev.in/jsonb-rails-pluck?utm_source=hashnode&utm_medium=feed)

If you have a jsonb field in your Active record object and you want some nested value you can use pluck Example: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of...

Sep 6, 2021 · 1 min read · dsdev.in  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#active-record](https://hashnode.com/tag/active-record)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#backend](https://hashnode.com/tag/backend)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Dhaval Singh](https://hashnode.com/@DhavalSingh)

@DhavalSingh · Bangalore, India

  
[View profile](https://hashnode.com/@DhavalSingh)

Writing about Software Development, Backend in particular!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
