<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>json in ruby Archives - Tomoshare</title>
	<atom:link href="https://blog.tomosia.com.vn/tag/json-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.tomosia.com.vn/tag/json-in-ruby/</link>
	<description>Kênh chia sẻ kiến thức Tomosia Việt Nam</description>
	<lastBuildDate>Mon, 11 Dec 2023 09:51:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.tomosia.com.vn/wp-content/uploads/2023/09/cropped-icon-32x32.png</url>
	<title>json in ruby Archives - Tomoshare</title>
	<link>https://blog.tomosia.com.vn/tag/json-in-ruby/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hiểu thêm về JSON trong Ruby</title>
		<link>https://blog.tomosia.com.vn/hieu-them-ve-json-trong-ruby/</link>
					<comments>https://blog.tomosia.com.vn/hieu-them-ve-json-trong-ruby/#comments</comments>
		
		<dc:creator><![CDATA[Thâm Davies]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 09:28:45 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[json in ruby]]></category>
		<guid isPermaLink="false">https://blog.tomosia.com.vn/?p=2531</guid>

					<description><![CDATA[<p>Trong bài này mình muốn chia sẻ một vài thứ hay ho trong method JSON.parse trong Ruby. Let’s&#8230;</p>
<p>The post <a href="https://blog.tomosia.com.vn/hieu-them-ve-json-trong-ruby/">Hiểu thêm về JSON trong Ruby</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Trong bài này mình muốn chia sẻ một vài thứ hay ho trong method <code>JSON.parse</code> trong Ruby. Let’s jump in 👇</p>



<p>Trong Ruby, phương thức <code>JSON.parse</code> dùng để parse chuỗi JSON và chuyển đổi nó thành cấu trúc dữ liệu của Ruby, thường là hash hay array. Chúng ta cũng có thể truyền hai tham số là: <code>object_class</code> và <code>symbolize_names</code>.</p>



<ul class="wp-block-list">
<li>object_class: cho phép bạn chỉ định lớp sẽ được sử dụng để khởi tạo đối tượng cho JSON.</li>



<li>symbolize_names: nếu bạn truyền tham số <code>symbolize_names</code> với giá trị là true thì key của object sau khi parse là symbol chứ không phải string như mặc định</li>
</ul>



<figure class="wp-block-image size-large"><img decoding="async" src="https://i.imgur.com/4hv0Gym.png" alt=""/></figure>



<p>Link code: <a href="https://gist.github.com/thamdavies/2780c45d214546caf8b1d83fb6c70e53">Gist</a></p>



<p>Bài viết gốc: <a href="https://www.thamdavies.com/blog/hieu-them-ve-json-trong-ruby">thamdavies.com</a></p>



<p>That’s it. Happy coding 💯</p>
<p>The post <a href="https://blog.tomosia.com.vn/hieu-them-ve-json-trong-ruby/">Hiểu thêm về JSON trong Ruby</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tomosia.com.vn/hieu-them-ve-json-trong-ruby/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
